Fix testAutoExpandIndicesDuringRollingUpgrade (#50361)

Follow-up to #50361 that fixes the test that does not work against older ES versions
This commit is contained in:
Yannick Welsch 2019-12-20 11:48:09 +01:00
parent 4f805deb0c
commit a3837786ec
1 changed files with 3 additions and 1 deletions

View File

@ -789,8 +789,10 @@ public class RecoveryIT extends AbstractRollingTestCase {
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1) .put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, randomInt(2)) .put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, randomInt(2))
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-all") .put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-all")
.put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2)))
.build()); .build());
ensureGreen(indexName);
updateIndexSettings(indexName,
Settings.builder().put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2))));
} }
ensureGreen(indexName); ensureGreen(indexName);