[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) {
|
if (routingNode == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
assert assertShardStats(this);
|
|
||||||
return new RoutingNodeIterator(routingNode);
|
return new RoutingNodeIterator(routingNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,6 @@ public class AllocationService extends AbstractComponent {
|
||||||
if (!moved) {
|
if (!moved) {
|
||||||
logger.debug("[{}][{}] can't move", shardRouting.index(), shardRouting.id());
|
logger.debug("[{}][{}] can't move", shardRouting.index(), shardRouting.id());
|
||||||
} else {
|
} else {
|
||||||
assert RoutingNodes.assertShardStats(allocation.routingNodes());
|
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue