Skip to content

Commit c5cce6e

Browse files
committed
update index settings
1 parent 4afc8c5 commit c5cce6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/elasticsearch/recovery/RelocationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void testSimpleRelocationNoIndexing() {
151151
assertThat(clusterHealthResponse.isTimedOut(), equalTo(false));
152152

153153
logger.info("--> relocate the shard from node1 to node2");
154-
ClusterRerouteUtils.reroute(client(), new MoveAllocationCommand("test", 0, node_1, node_2));
154+
updateIndexSettings(Settings.builder().put("index.routing.allocation.include._id", node_2), "test");
155155

156156
clusterHealthResponse = clusterAdmin().prepareHealth(TEST_REQUEST_TIMEOUT)
157157
.setWaitForEvents(Priority.LANGUID)

0 commit comments

Comments
 (0)