Commit f86990d 1 parent f8213b8 commit f86990d Copy full SHA for f86990d
File tree 1 file changed +7
-2
lines changed
server/src/internalClusterTest/java/org/opensearch/remotemigration
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
package org .opensearch .remotemigration ;
10
10
11
+ import org .opensearch .action .admin .cluster .configuration .AddVotingConfigExclusionsAction ;
12
+ import org .opensearch .action .admin .cluster .configuration .AddVotingConfigExclusionsRequest ;
11
13
import org .opensearch .cluster .ClusterState ;
12
14
import org .opensearch .cluster .health .ClusterHealthStatus ;
13
15
import org .opensearch .cluster .metadata .IndexMetadata ;
@@ -471,7 +473,6 @@ public void testRemotePathMetadataAddedWithFirstPrimaryMovingToRemote() throws E
471
473
* exclude docrep nodes, assert that remote index path file exists
472
474
* when shards start relocating to the remote nodes.
473
475
*/
474
- @ AwaitsFix (bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/13939" )
475
476
public void testRemoteIndexPathFileExistsAfterMigration () throws Exception {
476
477
String docrepClusterManager = internalCluster ().startClusterManagerOnlyNode ();
477
478
@@ -518,7 +519,11 @@ public void testRemoteIndexPathFileExistsAfterMigration() throws Exception {
518
519
.isAcknowledged ()
519
520
);
520
521
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
+
522
527
internalCluster ().validateClusterFormed ();
523
528
524
529
logger .info ("---> Excluding docrep nodes from allocation" );
You can’t perform that action at this time.
0 commit comments