Class AssignRegionHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.regionserver.handler.AssignRegionHandler
- All Implemented Interfaces:
Comparable<EventHandler>
,Runnable
Handles opening of a region on a region server.
Just done the same thing with the old
OpenRegionHandler
, with some modifications on
fencing and retrying. But we need to keep the OpenRegionHandler
as is to keep compatible
with the zk less assignment for 1.x, otherwise it is not possible to do rolling upgrade.-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private static final org.slf4j.Logger
private final long
private final long
private final RegionInfo
private final RetryCounter
private final TableDescriptor
Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents
-
Constructor Summary
ConstructorDescriptionAssignRegionHandler
(HRegionServer server, RegionInfo regionInfo, long openProcId, TableDescriptor tableDesc, long masterSystemTime, long initiatingMasterActiveTime, EventType eventType) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
static AssignRegionHandler
create
(HRegionServer server, RegionInfo regionInfo, long openProcId, TableDescriptor tableDesc, long masterSystemTime, long initiatingMasterActiveTime) private HRegionServer
protected void
Event exception handler, may be overriddenvoid
process()
This method is the main processing loop to be implemented by the various subclasses.Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler
compareTo, getEventType, getInformativeName, getPriority, getSeqid, prepare, run, toString
-
Field Details
-
LOG
-
regionInfo
-
openProcId
-
tableDesc
-
masterSystemTime
-
initiatingMasterActiveTime
-
retryCounter
-
-
Constructor Details
-
AssignRegionHandler
public AssignRegionHandler(HRegionServer server, RegionInfo regionInfo, long openProcId, @Nullable TableDescriptor tableDesc, long masterSystemTime, long initiatingMasterActiveTime, EventType eventType)
-
-
Method Details
-
getServer
-
cleanUpAndReportFailure
- Throws:
IOException
-
process
Description copied from class:EventHandler
This method is the main processing loop to be implemented by the various subclasses.- Specified by:
process
in classEventHandler
- Throws:
IOException
-
handleException
Description copied from class:EventHandler
Event exception handler, may be overridden- Overrides:
handleException
in classEventHandler
- Parameters:
t
- Throwable object
-
create
public static AssignRegionHandler create(HRegionServer server, RegionInfo regionInfo, long openProcId, TableDescriptor tableDesc, long masterSystemTime, long initiatingMasterActiveTime)
-