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(); }
117118119120121122123124125126127
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(); }
123124125126127128129130131132133
{ participants[i].syncStop(); } Thread.sleep(2000); controller.syncStop(); System.out.println("END " + clusterName + " at " + new Date(System.currentTimeMillis())); }
133134135136137138139140141142143
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(); }
193194195196197198199200201202203
Assert.assertEquals(_errToOfflineInvoked, 2, "Should reset 2 partitions"); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < 5; i++) { participants[i].syncStop(); }
120121122123124125126127128129130
Assert.assertTrue(listener._maxNbOfChilds <= 2, "Should get no more than 2 messages (O->S and S->M)"); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < n; i++) { participants[i].syncStop(); }
209210211212213214215216217218219
// clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < n; i++) { participants[i].syncStop(); }
370371372373374375376377378379380
Assert.assertTrue(listener._maxNbOfChilds > 16, "Should see more than 16 messages at the same time (32 O->S and 32 S->M)"); // clean up // wait for all zk callbacks done Thread.sleep(1000); controller.syncStop(); for (int i = 0; i < n; i++) { participants[i].syncStop(); }