Skip to content

Commit

Permalink
Fix node requirement for testPruneFileCacheOnIndexDeletion (#6796) (#…
Browse files Browse the repository at this point in the history
…6808)

(cherry picked from commit 8ebd522)

Signed-off-by: Kunal Kotwani <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 528cf87 commit 9405251
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
Expand Down

0 comments on commit 9405251

Please sign in to comment.