use of alluxio.client.block.AlluxioBlockStore in project alluxio by Alluxio.
the class MasterFaultToleranceIntegrationTest method workerReRegister.
@Test
public void workerReRegister() throws Exception {
AlluxioBlockStore store = AlluxioBlockStore.create();
Assert.assertEquals(WORKER_CAPACITY_BYTES, store.getCapacityBytes());
for (int kills = 0; kills < MASTERS - 1; kills++) {
Assert.assertTrue(mMultiMasterLocalAlluxioCluster.stopLeader());
mMultiMasterLocalAlluxioCluster.waitForNewMaster(CLUSTER_WAIT_TIMEOUT_MS);
waitForWorkerRegistration(store, 1, 5 * Constants.SECOND_MS);
// If worker is successfully re-registered, the capacity bytes should not change.
Assert.assertEquals(WORKER_CAPACITY_BYTES, store.getCapacityBytes());
}
}
Aggregations