Step 2: Check all Elasticsearch Unassigned Shards Here you need to check all the unassigned shards using below curl query. You can check the name of the shards and its current state from below output. In this case I have waited for sometime and saw that cluster status is not moving ahead...
=newDeleteByQueryRequest(index) .setBatchSize(5000) .setQuery(QueryBuilders.matchQuery(DATASET_KEY_FIELD, datasetKey));try{ esClient.deleteByQuery(request, HEADERS.get()); }catch(IOException e) { LOG.error("Could not delete records of dataset {} from index {}", datasetKey, index); } ...
setBatchSize(5000) .setQuery(QueryBuilders.matchQuery(DATASET_KEY_FIELD, datasetKey)); try { esClient.deleteByQuery(request, HEADERS.get()); } catch (IOException e) { LOG.error("Could not delete records of dataset {} from index {}", datasetKey, index); } } ...