File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
server/src/internalClusterTest/java/org/opensearch/remotemigration Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 88
99package org .opensearch .remotemigration ;
1010
11+ import org .opensearch .action .admin .cluster .configuration .AddVotingConfigExclusionsAction ;
12+ import org .opensearch .action .admin .cluster .configuration .AddVotingConfigExclusionsRequest ;
1113import org .opensearch .cluster .ClusterState ;
1214import org .opensearch .cluster .health .ClusterHealthStatus ;
1315import org .opensearch .cluster .metadata .IndexMetadata ;
@@ -471,7 +473,6 @@ public void testRemotePathMetadataAddedWithFirstPrimaryMovingToRemote() throws E
471473 * exclude docrep nodes, assert that remote index path file exists
472474 * when shards start relocating to the remote nodes.
473475 */
474- @ AwaitsFix (bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/13939" )
475476 public void testRemoteIndexPathFileExistsAfterMigration () throws Exception {
476477 String docrepClusterManager = internalCluster ().startClusterManagerOnlyNode ();
477478
@@ -518,7 +519,11 @@ public void testRemoteIndexPathFileExistsAfterMigration() throws Exception {
518519 .isAcknowledged ()
519520 );
520521
521- internalCluster ().stopRandomNode (InternalTestCluster .nameFilter (docrepClusterManager ));
522+ // elect cluster manager with remote-cluster state enabled
523+ internalCluster ().client ()
524+ .execute (AddVotingConfigExclusionsAction .INSTANCE , new AddVotingConfigExclusionsRequest (docrepClusterManager ))
525+ .get ();
526+
522527 internalCluster ().validateClusterFormed ();
523528
524529 logger .info ("---> Excluding docrep nodes from allocation" );
You can’t perform that action at this time.
0 commit comments