From 8ebd52202b1de5a929f31f8e22b9dd7804542fdb Mon Sep 17 00:00:00 2001 From: Kunal Kotwani Date: Thu, 23 Mar 2023 09:44:51 -0700 Subject: [PATCH] Fix node requirement for testPruneFileCacheOnIndexDeletion (#6796) 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 efb2615cd086a..a5a2e8cdd223e 100644 --- a/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java @@ -519,7 +519,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"; @@ -528,7 +527,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);