Skip to content

Commit e3aa2a8

Browse files
committed
[TEST] Wait in OldIndexBackwardsCompatibilityIT for cluster to be fully initialized
There are test failures that suggest that the import of dangling indices is happening too early, before the dangling indices are ready to be consumed. This commit adds an ensureGreen() at the end of cluster initialization to make sure that no cluster state updates are happening while the dangling indices are prepared on-disk.
1 parent 7e58118 commit e3aa2a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ void setupCluster() throws Exception {
166166
Files.createDirectories(multiDataPath[0]);
167167
Files.createDirectories(multiDataPath[1]);
168168
logger.info("--> Multi data paths: {}, {}", multiDataPath[0], multiDataPath[1]);
169+
ensureGreen();
169170
}
170171

171172
void upgradeIndexFolder() throws Exception {

0 commit comments

Comments
 (0)