Skip to content

Commit 2906600

Browse files
authored
Fix flaky RemoteCloseIndexIT test (#18801)
Signed-off-by: Gagan Singh Saini <gagasa@amazon.com>
1 parent 6119faa commit 2906600

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/state/CloseIndexIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ public void testConcurrentClosesAndOpens() throws Exception {
391391
}
392392
refresh(indexName);
393393
assertIndexIsOpened(indexName);
394+
waitForReplication(indexName);
394395
assertHitCount(
395396
client().prepareSearch(indexName).setSize(0).setTrackTotalHitsUpTo(TRACK_TOTAL_HITS_ACCURATE).get(),
396397
indexer.totalIndexedDocs()

server/src/internalClusterTest/java/org/opensearch/indices/state/RemoteCloseIndexIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1212

13-
import org.apache.lucene.tests.util.LuceneTestCase;
1413
import org.opensearch.cluster.metadata.IndexMetadata;
1514
import org.opensearch.common.settings.Settings;
1615
import org.opensearch.core.common.unit.ByteSizeUnit;
@@ -25,7 +24,6 @@
2524

2625
import static org.opensearch.common.util.FeatureFlags.WRITABLE_WARM_INDEX_SETTING;
2726

28-
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/18695")
2927
public class RemoteCloseIndexIT extends CloseIndexIT {
3028

3129
public RemoteCloseIndexIT(Settings nodeSettings) {

0 commit comments

Comments
 (0)