File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
server/src/main/java/org/elasticsearch/cluster/routing/allocation Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,7 @@ public static ClusterState removeStaleIdsWithoutRoutings(ClusterState clusterSta
239
239
}
240
240
indexMetaDataBuilder .putInSyncAllocationIds (shardNumber , remainingInSyncAllocations );
241
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
- }
242
+ logger .warn ("{} marking unavailable shards as stale: {}" , shardEntry .getKey (), idsToRemove );
247
243
}
248
244
249
245
if (indexMetaDataBuilder != null ) {
You can’t perform that action at this time.
0 commit comments