Skip to content

Commit

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

Signed-off-by: Kunal Kotwani <[email protected]>
Signed-off-by: Valentin Mitrofanov <[email protected]>
  • Loading branch information
kotwanikunal authored and mitrofmep committed Apr 5, 2023
1 parent c200f26 commit 1ca9ee4
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 1ca9ee4

Please sign in to comment.