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
Modifier and TypeClassDescriptionclass
Build the actual backup procedure runner that will do all the 'hard' work -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
# of threads for backup work on the rs.static final String
Conf key for number of request threads to start backup on region serversprivate static final long
Default amount of time to check for errors while regions finish backup workstatic final String
Conf key for millis between checks to see if backup work completed or if there are errorsstatic final long
static final String
private static final org.slf4j.Logger
private ProcedureMember
private ProcedureMemberRpcs
private RegionServerServices
private boolean
-
Constructor Summary
ConstructorDescriptionCreate 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.void
Initialize a globally barriered procedure for region servers.void
start()
Start accepting backup procedure requests.void
stop
(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:
start
in classRegionServerProcedureManager
-
stop
Close this and all running backup procedure tasks- Specified by:
stop
in 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:RegionServerProcedureManager
Initialize a globally barriered procedure for region servers.- Specified by:
initialize
in classRegionServerProcedureManager
- Parameters:
rss
- Region Server service interface- Throws:
org.apache.zookeeper.KeeperException
-
getProcedureSignature
Description copied from class:ProcedureManager
Return 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:
getProcedureSignature
in classProcedureManager
-