[TEST] Protect UpgradeIT from using too many replicas

This commit is contained in:
Simon Willnauer 2015-12-29 10:38:58 +01:00
parent c6182cbd37
commit 60cbb2d7bc
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ public class UpgradeIT extends ESBackcompatTestCase {
return 2;
}
@Override
protected int maximumNumberOfReplicas() {
return Math.max(0, Math.min(backwardsCluster().numBackwardsDataNodes(), backwardsCluster().numNewDataNodes()) - 1);
}
public void testUpgrade() throws Exception {
// allow the cluster to rebalance quickly - 2 concurrent rebalance are default we can do higher
Settings.Builder builder = Settings.builder();