Class LogRollBackupSubprocedure
java.lang.Object
org.apache.hadoop.hbase.procedure.Subprocedure
org.apache.hadoop.hbase.backup.regionserver.LogRollBackupSubprocedure
This backup sub-procedure implementation forces a WAL rolling on a RS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classCallable task.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
Subprocedure.SubprocedureImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final org.slf4j.Loggerprivate final RegionServerServicesprivate final LogRollBackupSubprocedurePoolFields inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
executionTimeoutTimer, monitor, rpcs, wakeFrequency -
Constructor Summary
ConstructorsConstructorDescriptionLogRollBackupSubprocedure(RegionServerServices rss, ProcedureMember member, ForeignExceptionDispatcher errorListener, long wakeFrequency, long timeout, LogRollBackupSubprocedurePool taskManager, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe implementation of this method should gather and hold required resources (locks, disk space, etc) to satisfy the Procedures barrier condition.voidCancel threads if they haven't finished.byte[]do a log roll.voidHooray!private voidrolllog()Methods inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
call, cancel, getMemberName, getName, receiveReachedGlobalBarrier, waitForLocallyCompleted
-
Field Details
-
LOG
-
rss
-
taskManager
-
backupRoot
-
-
Constructor Details
-
LogRollBackupSubprocedure
public LogRollBackupSubprocedure(RegionServerServices rss, ProcedureMember member, ForeignExceptionDispatcher errorListener, long wakeFrequency, long timeout, LogRollBackupSubprocedurePool taskManager, byte[] data)
-
-
Method Details
-
rolllog
- Throws:
ForeignException
-
acquireBarrier
Description copied from class:SubprocedureThe implementation of this method should gather and hold required resources (locks, disk space, etc) to satisfy the Procedures barrier condition. For example, this would be where to make all the regions on a RS on the quiescent for an procedure that required all regions to be globally quiesed. Users should override this method. If a quiescent is not required, this is overkill but can still be used to execute a procedure on all members and to propagate any exceptions.- Specified by:
acquireBarrierin classSubprocedure
-
insideBarrier
do a log roll.- Specified by:
insideBarrierin classSubprocedure- Returns:
- some bytes
- Throws:
ForeignException
-
cleanup
Cancel threads if they haven't finished.- Specified by:
cleanupin classSubprocedure
-
releaseBarrier
Hooray!
-