[TEST] Add additional logging to IndicesStoreIntegrationIT.testIndexCleanup

This commit is contained in:
Lee Hinman 2017-02-22 10:11:05 -07:00
parent 495b24655b
commit 6f1ed8a3d1
No known key found for this signature in database
GPG Key ID: 9D6465D43ACECAE0
1 changed files with 4 additions and 0 deletions

View File

@ -142,12 +142,16 @@ public class IndicesStoreIntegrationIT extends ESIntegTestCase {
transportServiceNode3.addTracer(new ReclocationStartEndTracer(logger, beginRelocationLatch, endRelocationLatch));
internalCluster().client().admin().cluster().prepareReroute().add(new MoveAllocationCommand("test", 0, node_1, node_3)).get();
// wait for relocation to start
logger.info("--> waiting for relocation to start");
beginRelocationLatch.await();
logger.info("--> starting disruption");
disruption.startDisrupting();
// wait for relocation to finish
logger.info("--> waiting for relocation to finish");
endRelocationLatch.await();
// wait a little so that cluster state observer is registered
sleep(50);
logger.info("--> stopping disruption");
disruption.stopDisrupting();
} else {
internalCluster().client().admin().cluster().prepareReroute().add(new MoveAllocationCommand("test", 0, node_1, node_3)).get();