Fix testAutoExpandIndicesDuringRollingUpgrade (#50361)
Follow-up to #50361 that fixes the test that does not work against older ES versions
This commit is contained in:
parent
4f805deb0c
commit
a3837786ec
|
@ -789,8 +789,10 @@ public class RecoveryIT extends AbstractRollingTestCase {
|
|||
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
|
||||
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, randomInt(2))
|
||||
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-all")
|
||||
.put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2)))
|
||||
.build());
|
||||
ensureGreen(indexName);
|
||||
updateIndexSettings(indexName,
|
||||
Settings.builder().put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2))));
|
||||
}
|
||||
|
||||
ensureGreen(indexName);
|
||||
|
|
Loading…
Reference in New Issue