From 9a7a2fa156be39baab5c63d6d6e68b78e4de7206 Mon Sep 17 00:00:00 2001 From: Kunal Kotwani Date: Wed, 22 Mar 2023 15:41:11 -0700 Subject: [PATCH] Fix node requirement for testPruneFileCacheOnIndexDeletion Signed-off-by: Kunal Kotwani --- .../java/org/opensearch/snapshots/SearchableSnapshotIT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java b/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java index 5f5e0a0912140..0d057925944ff 100644 --- a/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java @@ -522,7 +522,6 @@ private boolean isFileCacheEmpty(FileCacheStats stats) { return stats.getUsed().getBytes() == 0L && stats.getActive().getBytes() == 0L; } - @AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/6738") public void testPruneFileCacheOnIndexDeletion() throws Exception { final String snapshotName = "test-snap"; final String repoName = "test-repo"; @@ -531,7 +530,7 @@ public void testPruneFileCacheOnIndexDeletion() throws Exception { final Client client = client(); final int numNodes = 2; - internalCluster().ensureAtLeastNumSearchNodes(numNodes); + internalCluster().ensureAtLeastNumSearchAndDataNodes(numNodes); createIndexWithDocsAndEnsureGreen(1, 100, indexName1); createRepositoryWithSettings(null, repoName);