Skip to content

Commit c17dcf3

Browse files
committed
Fix testAutoExpandIndicesDuringRollingUpgrade (#50361)
Follow-up to #50361 that fixes the test that does not work against older ES versions
1 parent 9e6e4bb commit c17dcf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,10 @@ public void testAutoExpandIndicesDuringRollingUpgrade() throws Exception {
747747
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
748748
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, randomInt(2))
749749
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-all")
750-
.put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2)))
751750
.build());
751+
ensureGreen(indexName);
752+
updateIndexSettings(indexName,
753+
Settings.builder().put(IndexMetaData.INDEX_ROUTING_EXCLUDE_GROUP_PREFIX + "._id", nodes.get(randomInt(2))));
752754
}
753755

754756
ensureGreen(indexName);

0 commit comments

Comments
 (0)