Skip to content

Commit 8485a8e

Browse files
committed
test
1 parent c5cce6e commit 8485a8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 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-
updateIndexSettings(Settings.builder().put("index.routing.allocation.include._id", node_2), "test");
154+
ClusterRerouteUtils.reroute(client(), new MoveAllocationCommand("test", 0, node_1, node_2));
155155

156156
clusterHealthResponse = clusterAdmin().prepareHealth(TEST_REQUEST_TIMEOUT)
157157
.setWaitForEvents(Priority.LANGUID)
@@ -216,6 +216,7 @@ public void testSimpleRelocationWithIndexingPaused() throws Exception {
216216

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

220221
// Relocation will suspend throttling for the paused shard, allow the indexing thread to proceed, thereby releasing
221222
// the indexing permit it holds, in turn allowing relocation to acquire the permits and proceed.
@@ -296,6 +297,10 @@ public void testRelocationWhileIndexingRandom() throws Exception {
296297
indexer.continueIndexing(numDocs);
297298
logger.info("--> START relocate the shard from {} to {}", nodes[fromNode], nodes[toNode]);
298299
ClusterRerouteUtils.reroute(client(), new MoveAllocationCommand("test", 0, nodes[fromNode], nodes[toNode]));
300+
301+
// updateIndexSettings(Settings.builder().put("index.routing.allocation.include._id", nodes[toNode]), "test");
302+
// ensureGreen(ACCEPTABLE_RELOCATION_TIME, "test");
303+
299304
if (rarely()) {
300305
logger.debug("--> flushing");
301306
indicesAdmin().prepareFlush().get();

0 commit comments

Comments
 (0)