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:
Chris M. Hostetter 2014-06-19 21:16:24 +00:00
parent bd727b49ab
commit 2867f2c593
1 changed files with 2 additions and 1 deletions

View File

@ -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());