180181182183184185186187188189190
// clean up // wait for all zk callbacks done Thread.sleep(1000); // adminThread.stop(); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); } System.out.println("END " + clusterName + " at "
124125126127128129130131132133134
// clean up // wait for all zk callbacks done Thread.sleep(1000); // adminThread.stop(); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
155156157158159160161162163164165
Assert.assertEquals(record.getId(), "mockAlerts4"); } // clean up Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
130131132133134135136137138139140
{ participants[i].syncStop(); } Thread.sleep(2000); controller.syncStop(); System.out.println("END " + clusterName + " at " + new Date(System.currentTimeMillis())); } }
8788899091929394959697
116117118119120121122123124125126
Assert.assertTrue(result, "Cluster verification fails"); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
407408409410411412413414415416417
// clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
Assert.assertTrue(result); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
129130131132133134135136137138139
Assert.assertTrue(result, disableNode + " should NOT be in OFFLINE"); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }