We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b29f850 commit b0cd954Copy full SHA for b0cd954
1 file changed
server/src/main/java/org/elasticsearch/cluster/routing/allocation/IndexMetaDataUpdater.java
@@ -239,11 +239,7 @@ public static ClusterState removeStaleIdsWithoutRoutings(ClusterState clusterSta
239
}
240
indexMetaDataBuilder.putInSyncAllocationIds(shardNumber, remainingInSyncAllocations);
241
242
- // Only log the stale shards which have been actually removed.
243
- if (oldInSyncAllocations.size() != remainingInSyncAllocations.size()) {
244
- logger.warn("{} remove stale shards [{}] without routing", shardEntry.getKey(),
245
- Sets.difference(oldInSyncAllocations, remainingInSyncAllocations));
246
- }
+ logger.warn("{} marking unavailable shards as stale: {}", shardEntry.getKey(), idsToRemove);
247
248
249
if (indexMetaDataBuilder != null) {
0 commit comments