|
33 | 33 | import org.opensearch.common.action.ActionFuture; |
34 | 34 | import org.opensearch.common.settings.Setting; |
35 | 35 | import org.opensearch.common.settings.Settings; |
36 | | -import org.opensearch.common.util.concurrent.UncategorizedExecutionException; |
37 | 36 | import org.opensearch.gateway.remote.ClusterMetadataManifest; |
38 | 37 | import org.opensearch.gateway.remote.ClusterMetadataManifest.UploadedIndexMetadata; |
39 | 38 | import org.opensearch.gateway.remote.RemoteClusterStateService; |
|
43 | 42 | import org.opensearch.test.OpenSearchIntegTestCase; |
44 | 43 | import org.junit.Before; |
45 | 44 |
|
| 45 | +import java.io.IOError; |
46 | 46 | import java.io.IOException; |
47 | 47 | import java.nio.file.Files; |
48 | 48 | import java.nio.file.Path; |
@@ -313,7 +313,6 @@ public void testFullClusterRestoreMultipleIndices() throws Exception { |
313 | 313 | updateIndexBlock(false, secondIndexName); |
314 | 314 | } |
315 | 315 |
|
316 | | - @AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/pull/15950") |
317 | 316 | public void testFullClusterRestoreManifestFilePointsToInvalidIndexMetadataPathThrowsException() throws Exception { |
318 | 317 | int shardCount = randomIntBetween(1, 2); |
319 | 318 | int replicaCount = 1; |
@@ -341,10 +340,11 @@ public void testFullClusterRestoreManifestFilePointsToInvalidIndexMetadataPathTh |
341 | 340 | for (UploadedIndexMetadata md : manifest.getIndices()) { |
342 | 341 | Files.move(segmentRepoPath.resolve(md.getUploadedFilename()), segmentRepoPath.resolve("cluster-state/")); |
343 | 342 | } |
| 343 | + internalCluster().stopAllNodes(); |
344 | 344 | } catch (IOException e) { |
345 | 345 | throw new RuntimeException(e); |
346 | 346 | } |
347 | | - assertThrows(UncategorizedExecutionException.class, () -> addNewNodes(dataNodeCount, clusterManagerNodeCount)); |
| 347 | + assertThrows(IOError.class, () -> internalCluster().client()); |
348 | 348 | // Test is complete |
349 | 349 |
|
350 | 350 | // Starting a node without remote state to ensure test cleanup |
|
0 commit comments