Skip to content

Commit 485f931

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 8fa9a3f commit 485f931

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

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ void setupCluster() throws Exception {
164164
Files.createDirectories(multiDataPath[0]);
165165
Files.createDirectories(multiDataPath[1]);
166166
logger.info("--> Multi data paths: {}, {}", multiDataPath[0], multiDataPath[1]);
167+
ensureGreen();
167168
}
168169

169170
void upgradeIndexFolder() throws Exception {

0 commit comments

Comments
 (0)