[TEST] Protect UpgradeIT from using too many replicas
This commit is contained in:
parent
c6182cbd37
commit
60cbb2d7bc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue