File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
server/src/internalClusterTest/java/org/elasticsearch/recovery Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments