[TEST] Don't invoke RoutingNodes.assertShardStats() via asserts many times in tests, just once on each reroute call.
This commit is contained in:
parent
ae326c4232
commit
95a4e699bf
|
@ -513,7 +513,6 @@ public class RoutingNodes implements Iterable<RoutingNode> {
|
|||
if (routingNode == null) {
|
||||
return null;
|
||||
}
|
||||
assert assertShardStats(this);
|
||||
return new RoutingNodeIterator(routingNode);
|
||||
}
|
||||
|
||||
|
|
|
@ -261,7 +261,6 @@ public class AllocationService extends AbstractComponent {
|
|||
if (!moved) {
|
||||
logger.debug("[{}][{}] can't move", shardRouting.index(), shardRouting.id());
|
||||
} else {
|
||||
assert RoutingNodes.assertShardStats(allocation.routingNodes());
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue