Skip to content

Commit

Permalink
Fix node requirement for testPruneFileCacheOnIndexDeletion (#6796)
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <[email protected]>
  • Loading branch information
kotwanikunal authored Mar 23, 2023
1 parent e58a33d commit 8ebd522
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 8ebd522

Please sign in to comment.