@InterfaceAudience.Private public class EnabledTableSnapshotHandler extends TakeSnapshotHandler
Procedure to run the snapshot across all the involved region servers.ProcedureCoordinatorconf, fs, htd, master, metricsSnapshot, monitor, rootDir, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, workingDireventType, seqids, server, waitingTimeForEvents| 构造器和说明 |
|---|
EnabledTableSnapshotHandler(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
downgradeToSharedTableLock()
When taking snapshot, first we must acquire the exclusive table lock to confirm that there are
no ongoing merge/split procedures.
|
EnabledTableSnapshotHandler |
prepare()
Event handlers should do all the necessary checks in this method (rather than
in the constructor, or in process()) so that the caller, which is mostly executed
in the ipc context can fail fast.
|
protected void |
snapshotRegions(List<Pair<RegionInfo,ServerName>> regions)
This method kicks off a snapshot procedure.
|
cancel, completeSnapshot, getCompletionTimestamp, getException, getExceptionIfFailed, getSnapshot, hasException, isFinished, process, rethrowException, rethrowExceptionIfFailed, snapshotDisabledRegioncompareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, run, toStringpublic EnabledTableSnapshotHandler(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, MasterServices master, SnapshotManager manager)
public EnabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare 在类中 TakeSnapshotHandlerException - when something goes wrongprotected void snapshotRegions(List<Pair<RegionInfo,ServerName>> regions) throws HBaseSnapshotException, IOException
protected boolean downgradeToSharedTableLock()
TakeSnapshotHandlerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.