[TEST] Don't invoke RoutingNodes.assertShardStats() via asserts many times in tests, just once on each reroute call.

This commit is contained in:
Martijn van Groningen 2014-08-18 19:55:20 +02:00
parent ae326c4232
commit 95a4e699bf
2 changed files with 0 additions and 2 deletions

View File

@ -513,7 +513,6 @@ public class RoutingNodes implements Iterable<RoutingNode> {
if (routingNode == null) {
return null;
}
assert assertShardStats(this);
return new RoutingNodeIterator(routingNode);
}

View File

@ -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;
}
}