use of alluxio.master.meta.MetaMaster in project alluxio by Alluxio.
the class MetaMasterJournalTest method journalClusterID.
@Test
public void journalClusterID() throws Exception {
MetaMaster metaMaster = mCluster.getLocalAlluxioMaster().getMasterProcess().getMaster(MetaMaster.class);
String clusterID = metaMaster.getClusterID();
assertNotNull(clusterID);
assertNotEquals(clusterID, DefaultMetaMaster.INVALID_CLUSTER_ID);
mCluster.stopMasters();
mCluster.startMasters();
AlluxioMasterProcess masterProcess = mCluster.getLocalAlluxioMaster().getMasterProcess();
assertTrue(masterProcess.getMaster(MetaMaster.class).getClusterID().equals(clusterID));
}
Aggregations