We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9dc17f commit 9c3149cCopy full SHA for 9c3149c
server/src/main/java/org/elasticsearch/cluster/routing/RoutingNodes.java
@@ -1058,7 +1058,7 @@ public static boolean assertShardStats(RoutingNodes routingNodes) {
1058
1059
for (final Map.Entry<Index, Integer> e : entries) {
1060
final Index index = e.getKey();
1061
- for (int i = 0; i < e.getValue(); i++) {
+ for (int i = 0; i <= e.getValue(); i++) {
1062
final ShardId shardId = new ShardId(index, i);
1063
final HashSet<ShardRouting> shards = shardsByShardId.get(shardId);
1064
final List<ShardRouting> mutableShardRoutings = routingNodes.assignedShards(shardId);
0 commit comments