mirror of https://github.com/apache/lucene.git
use Chaos Monkey's utility method for (re)starting up jetty so that we get it's automatic rety mechanism in the event that the old jetty process hasn't finished releasing the port
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1604033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bd727b49ab
commit
2867f2c593
|
@ -99,7 +99,8 @@ public class RollingRestartTest extends AbstractFullDistribZkTestBase {
|
|||
if(leader == null) log.error("NOOVERSEER election queue is :"+ OverseerCollectionProcessor.getSortedElectionNodes(cloudClient.getZkStateReader().getZkClient()));
|
||||
fail("No overseer designate as leader found after restart #" + (i + 1) + ": " + leader);
|
||||
}
|
||||
cloudJetty.jetty.start();
|
||||
assertTrue("Unable to restart (#"+i+"): " + cloudJetty,
|
||||
chaosMonkey.start(cloudJetty.jetty));
|
||||
success = waitUntilOverseerDesignateIsLeader(cloudClient.getZkStateReader().getZkClient(), designates, 60);
|
||||
if (!success) {
|
||||
leader = OverseerCollectionProcessor.getLeaderNode(cloudClient.getZkStateReader().getZkClient());
|
||||
|
|
Loading…
Reference in New Issue