@InterfaceAudience.Private public class EnabledTableSnapshotHandler extends TakeSnapshotHandler
Procedure
to run the snapshot across all the involved region servers.ProcedureCoordinator
conf, fs, htd, master, metricsSnapshot, monitor, rootDir, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, workingDir
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
EnabledTableSnapshotHandler(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, completeSnapshot, getCompletionTimestamp, getException, getExceptionIfFailed, getSnapshot, hasException, isFinished, process, rethrowException, rethrowExceptionIfFailed, snapshotDisabledRegion
compareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, run, toString
public EnabledTableSnapshotHandler(SnapshotProtos.SnapshotDescription snapshot, MasterServices master, SnapshotManager manager)
public EnabledTableSnapshotHandler prepare() throws Exception
EventHandler
prepare
in class TakeSnapshotHandler
Exception
- when something goes wrongprotected void snapshotRegions(List<Pair<RegionInfo,ServerName>> regions) throws HBaseSnapshotException, IOException
snapshotRegions
in class TakeSnapshotHandler
HBaseSnapshotException
IOException
protected boolean downgradeToSharedTableLock()
TakeSnapshotHandler
downgradeToSharedTableLock
in class TakeSnapshotHandler
Copyright © 2007–2019 Cloudera. All rights reserved.