Skip to content

Commit e83611f

Browse files
revert adding ensureNoInitializingShardsBeforeWipingCluster
1 parent b22b781 commit e83611f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ protected final void beforeInternal() throws Exception {
368368
final Scope currentClusterScope = getCurrentClusterScope();
369369
Callable<Void> setup = () -> {
370370
cluster().beforeTest(random());
371-
ensureNoInitializingShardsBeforeWipingCluster();
372371
cluster().wipe(excludeTemplates());
373372
randomIndexTemplate();
374373
return null;
@@ -387,16 +386,6 @@ protected final void beforeInternal() throws Exception {
387386

388387
}
389388

390-
protected void ensureNoInitializingShardsBeforeWipingCluster() {
391-
logger.info("--> waiting for all initializing shards to complete within a reasonable time before wiping the cluster");
392-
assertNoTimeout(
393-
client().admin()
394-
.cluster()
395-
.health(new ClusterHealthRequest(TEST_REQUEST_TIMEOUT, "_all").waitForNoInitializingShards(true))
396-
.actionGet()
397-
);
398-
}
399-
400389
private void printTestMessage(String message) {
401390
if (isSuiteScopedTest(getClass()) && (getTestName().equals("<unknown>"))) {
402391
logger.info("[{}]: {} suite", getTestClass().getSimpleName(), message);

0 commit comments

Comments
 (0)