Search in sources :

Example 1 with MetaMaster

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));
}
Also used : AlluxioMasterProcess(alluxio.master.AlluxioMasterProcess) DefaultMetaMaster(alluxio.master.meta.DefaultMetaMaster) MetaMaster(alluxio.master.meta.MetaMaster) Test(org.junit.Test)

Aggregations

AlluxioMasterProcess (alluxio.master.AlluxioMasterProcess)1 DefaultMetaMaster (alluxio.master.meta.DefaultMetaMaster)1 MetaMaster (alluxio.master.meta.MetaMaster)1 Test (org.junit.Test)1