Class LogRollRegionServerProcedureManager
java.lang.Object
org.apache.hadoop.hbase.procedure.ProcedureManager
org.apache.hadoop.hbase.procedure.RegionServerProcedureManager
org.apache.hadoop.hbase.backup.regionserver.LogRollRegionServerProcedureManager
This manager class handles the work dealing with distributed WAL roll request.
This provides the mechanism necessary to kick off a backup specific Subprocedure that is
responsible by this region server. If any failures occur with the sub-procedure, the manager's
procedure member notifies the procedure coordinator to abort all others.
On startup, requires start() to be called.
On shutdown, requires org.apache.hadoop.hbase.procedure.ProcedureMember.close() to be called
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBuild the actual backup procedure runner that will do all the 'hard' work -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int# of threads for backup work on the rs.static final StringConf key for number of request threads to start backup on region serversprivate static final longDefault amount of time to check for errors while regions finish backup workstatic final StringConf key for millis between checks to see if backup work completed or if there are errorsstatic final longstatic final Stringprivate static final org.slf4j.Loggerprivate ProcedureMemberprivate ProcedureMemberRpcsprivate RegionServerServicesprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionCreate a default backup procedure manager -
Method Summary
Modifier and TypeMethodDescriptionbuildSubprocedure(byte[] data) If in a running state, creates the specified subprocedure for handling a backup procedure.Return the unique signature of the procedure.voidInitialize a globally barriered procedure for region servers.voidstart()Start accepting backup procedure requests.voidstop(boolean force) Close this and all running backup procedure tasksMethods inherited from class org.apache.hadoop.hbase.procedure.ProcedureManager
equals, hashCode
-
Field Details
-
LOG
-
BACKUP_REQUEST_THREADS_KEY
Conf key for number of request threads to start backup on region servers- See Also:
-
BACKUP_REQUEST_THREADS_DEFAULT
# of threads for backup work on the rs.- See Also:
-
BACKUP_TIMEOUT_MILLIS_KEY
- See Also:
-
BACKUP_TIMEOUT_MILLIS_DEFAULT
- See Also:
-
BACKUP_REQUEST_WAKE_MILLIS_KEY
Conf key for millis between checks to see if backup work completed or if there are errors- See Also:
-
BACKUP_REQUEST_WAKE_MILLIS_DEFAULT
Default amount of time to check for errors while regions finish backup work- See Also:
-
rss
-
memberRpcs
-
member
-
started
-
-
Constructor Details
-
LogRollRegionServerProcedureManager
public LogRollRegionServerProcedureManager()Create a default backup procedure manager
-
-
Method Details
-
start
Start accepting backup procedure requests.- Specified by:
startin classRegionServerProcedureManager
-
stop
Close this and all running backup procedure tasks- Specified by:
stopin classRegionServerProcedureManager- Parameters:
force- forcefully stop all running tasks- Throws:
IOException- exception
-
buildSubprocedure
If in a running state, creates the specified subprocedure for handling a backup procedure.- Returns:
- Subprocedure to submit to the ProcedureMember.
-
initialize
Description copied from class:RegionServerProcedureManagerInitialize a globally barriered procedure for region servers.- Specified by:
initializein classRegionServerProcedureManager- Parameters:
rss- Region Server service interface- Throws:
org.apache.zookeeper.KeeperException
-
getProcedureSignature
Description copied from class:ProcedureManagerReturn the unique signature of the procedure. This signature uniquely identifies the procedure. By default, this signature is the string used in the procedure controller (i.e., the root ZK node name for the procedure)- Specified by:
getProcedureSignaturein classProcedureManager
-