mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 02:18:42 +00:00
[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…
x
Reference in New Issue
Block a user