Skip to content

Commit 95a4e69

Browse files
committed
[TEST] Don't invoke RoutingNodes.assertShardStats() via asserts many times in tests, just once on each reroute call.
1 parent ae326c4 commit 95a4e69

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/main/java/org/elasticsearch/cluster/routing/RoutingNodes.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ public RoutingNodeIterator routingNodeIter(String nodeId) {
513513
if (routingNode == null) {
514514
return null;
515515
}
516-
assert assertShardStats(this);
517516
return new RoutingNodeIterator(routingNode);
518517
}
519518

src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ private boolean moveShards(RoutingAllocation allocation) {
261261
if (!moved) {
262262
logger.debug("[{}][{}] can't move", shardRouting.index(), shardRouting.id());
263263
} else {
264-
assert RoutingNodes.assertShardStats(allocation.routingNodes());
265264
changed = true;
266265
}
267266
}

0 commit comments

Comments
 (0)