Search in sources :

Example 6 with MasterWalManager

use of org.apache.hadoop.hbase.master.MasterWalManager in project hbase by apache.

the class ServerCrashProcedure method zkCoordinatedSplitMetaLogs.

/**
 * Split hbase:meta logs using 'classic' zk-based coordination.
 * Superceded by procedure-based WAL splitting.
 * @see #createSplittingWalProcedures(MasterProcedureEnv, boolean)
 */
private void zkCoordinatedSplitMetaLogs(MasterProcedureEnv env) throws IOException {
    LOG.debug("Splitting meta WALs {}", this);
    MasterWalManager mwm = env.getMasterServices().getMasterWalManager();
    AssignmentManager am = env.getMasterServices().getAssignmentManager();
    am.getRegionStates().metaLogSplitting(serverName);
    mwm.splitMetaLog(serverName);
    am.getRegionStates().metaLogSplit(serverName);
    LOG.debug("Done splitting meta WALs {}", this);
}
Also used : MasterWalManager(org.apache.hadoop.hbase.master.MasterWalManager) AssignmentManager(org.apache.hadoop.hbase.master.assignment.AssignmentManager)

Aggregations

MasterWalManager (org.apache.hadoop.hbase.master.MasterWalManager)6 AssignmentManager (org.apache.hadoop.hbase.master.AssignmentManager)3 AssignmentManager (org.apache.hadoop.hbase.master.assignment.AssignmentManager)2 HRegionInfo (org.apache.hadoop.hbase.HRegionInfo)1