From be471e9730532a2009d6967a9e891cac4f52cb68 Mon Sep 17 00:00:00 2001 From: Rishikesh1159 Date: Fri, 12 Jan 2024 18:55:14 +0000 Subject: [PATCH] remove unnecessary test. Signed-off-by: Rishikesh1159 --- .../snapshots/SearchableSnapshotIT.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java b/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java index b8c04c4ef83c7..583fdfbacd230 100644 --- a/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java @@ -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";