Class FlushTableSubprocedure
java.lang.Object
org.apache.hadoop.hbase.procedure.Subprocedure
org.apache.hadoop.hbase.procedure.flush.FlushTableSubprocedure
This flush region implementation uses the distributed procedure framework to flush table regions.
Its acquireBarrier stage does nothing. Its insideBarrier stage flushes the regions.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
Subprocedure.SubprocedureImpl
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
executionTimeoutTimer, monitor, rpcs, wakeFrequency
-
Constructor Summary
ConstructorDescriptionFlushTableSubprocedure
(ProcedureMember member, ForeignExceptionDispatcher errorListener, long wakeFrequency, long timeout, List<HRegion> regions, String table, List<String> families, RegionServerFlushTableProcedureManager.FlushTableSubprocedurePool taskManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Flush the online regions on this rs for the target table.void
Cancel threads if they haven't finished.private void
byte[]
The implementation of this method should act with the assumption that the barrier condition has been satisfied.void
Methods inherited from class org.apache.hadoop.hbase.procedure.Subprocedure
call, cancel, getMemberName, getName, receiveReachedGlobalBarrier, waitForLocallyCompleted
-
Field Details
-
LOG
-
table
-
families
-
regions
-
taskManager
-
-
Constructor Details
-
FlushTableSubprocedure
public FlushTableSubprocedure(ProcedureMember member, ForeignExceptionDispatcher errorListener, long wakeFrequency, long timeout, List<HRegion> regions, String table, List<String> families, RegionServerFlushTableProcedureManager.FlushTableSubprocedurePool taskManager)
-
-
Method Details
-
flushRegions
- Throws:
ForeignException
-
acquireBarrier
Flush the online regions on this rs for the target table.- Specified by:
acquireBarrier
in classSubprocedure
- Throws:
ForeignException
-
insideBarrier
Description copied from class:Subprocedure
The implementation of this method should act with the assumption that the barrier condition has been satisfied. Continuing the previous example, a condition could be that all RS's globally have been quiesced, and procedures that require this precondition could be implemented here. The implementation should also collect the result of the subprocedure as data to be returned to the coordinator upon successful completion. Users should override this method.- Specified by:
insideBarrier
in classSubprocedure
- Returns:
- the data the subprocedure wants to return to coordinator side.
- Throws:
ForeignException
-
cleanup
Cancel threads if they haven't finished.- Specified by:
cleanup
in classSubprocedure
-
releaseBarrier
-