@InterfaceAudience.Private public class EnabledTableSnapshotHandler extends TakeSnapshotHandler
Procedure to run the snapshot across all the involved region servers.ProcedureCoordinatorconf, htd, master, metricsSnapshot, monitor, rootDir, rootFs, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, workingDir, workingDirFseventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
EnabledTableSnapshotHandler(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager) |
| Modifier and Type | Method and Description |
|---|---|
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, 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) throws IOException
IOExceptionpublic EnabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare in class TakeSnapshotHandlerException - when something goes wrongprotected void snapshotRegions(List<Pair<RegionInfo,ServerName>> regions) throws IOException
snapshotRegions in class TakeSnapshotHandlerIOExceptionprotected boolean downgradeToSharedTableLock()
TakeSnapshotHandlerdowngradeToSharedTableLock in class TakeSnapshotHandlerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.