Skip to content

Commit 1d872c1

Browse files
committed
test
1 parent 661fa12 commit 1d872c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,13 @@ public void testRelocationWhileIndexingRandom() throws Exception {
316316
logger.info("--> DONE relocate the shard from {} to {}", fromNode, toNode);
317317
if (throttleIndexing) {
318318
// Deactivate throttling on source shard to allow indexing threads to pass
319-
Engine engine = shard.getEngineOrNull();
320-
assertThat(engine, equalTo(null));
321319
shard.deactivateThrottling();
322320
// Activate throttling on target shard before next relocation
323321
indicesService = internalCluster().getInstance(IndicesService.class, nodes[toNode]);
324322
shard = indicesService.indexServiceSafe(resolveIndex("test")).getShard(0);
325323
shard.activateThrottling();
326324
// Verify that indexing is throttled for this shard
327-
engine = shard.getEngineOrNull();
325+
Engine engine = shard.getEngineOrNull();
328326
assertThat(engine != null && engine.isThrottled(), equalTo(true));
329327
}
330328
}

0 commit comments

Comments
 (0)