Skip to content

Commit

Permalink
remove unnecessary test.
Browse files Browse the repository at this point in the history
Signed-off-by: Rishikesh1159 <[email protected]>
  • Loading branch information
Rishikesh1159 committed Jan 12, 2024
1 parent f08daa1 commit be471e9
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,35 +672,6 @@ public void testCacheIndexFilesClearedOnDelete() throws Exception {
logger.info("--> validated that the cache file path doesn't exist");
}

public void testVerifyIndexCreationWithIndexStoreTypeRemoteStoreThrowsException1() throws Exception {
final int numReplicas = randomIntBetween(1, 4);
final int numShards = numReplicas + 1;
final String indexName = "test-idx";
final String restoredIndexName = indexName + "-copy";
final String repoName = "test-repo";
final String snapshotName = "test-snap";
final Client client = client();

internalCluster().ensureAtLeastNumSearchAndDataNodes(numShards);
createIndexWithDocsAndEnsureGreen(numReplicas, 100, indexName);
createRepositoryWithSettings(null, repoName);
takeSnapshot(client, snapshotName, repoName, indexName);
restoreSnapshotAndEnsureGreen(client, snapshotName, repoName);
assertDocCount(restoredIndexName, 100L);
assertRemoteSnapshotIndexSettings(client, restoredIndexName);

// The index count will be 1 since there is only a single restored index "test-idx-copy"
assertCacheDirectoryReplicaAndIndexCount(numShards, 1);

// The local cache files should be closed by deleting the restored index
deleteIndicesAndEnsureGreen(client, restoredIndexName);

logger.info("--> validate cache file path is deleted");
// The index count will be 0 since the only restored index "test-idx-copy" was deleted
assertCacheDirectoryReplicaAndIndexCount(numShards, 0);
logger.info("--> validated that the cache file path doesn't exist");
}

public void testIndexCreationWithIndexStoreTypeRemoteStoreThrowsException() {
final int numReplicas = 1;
final String indexName = "test-idx";
Expand Down

0 comments on commit be471e9

Please sign in to comment.