Class UnassignRegionHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.regionserver.handler.UnassignRegionHandler
- All Implemented Interfaces:
Comparable<EventHandler>,Runnable
Handles closing of a region on a region server.
Just done the same thing with the old
CloseRegionHandler, with some modifications on
fencing and retrying. But we need to keep the CloseRegionHandler as is to keep compatible
with the zk less assignment for 1.x, otherwise it is not possible to do rolling upgrade.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final longprivate final ServerNameprivate final Stringprivate booleanprivate static final org.slf4j.Loggerprivate final RetryCounterFields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents -
Constructor Summary
ConstructorsConstructorDescriptionUnassignRegionHandler(HRegionServer server, String encodedName, long closeProcId, boolean abort, ServerName destination, EventType eventType) UnassignRegionHandler(HRegionServer server, String encodedName, long closeProcId, boolean abort, ServerName destination, EventType eventType, boolean evictCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnassignRegionHandlercreate(HRegionServer server, String encodedName, long closeProcId, boolean abort, ServerName destination, boolean evictCache) private HRegionServerprotected voidEvent exception handler, may be overriddenvoidprocess()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
-
encodedName
-
closeProcId
-
abort
-
destination
-
retryCounter
-
evictCache
-
-
Constructor Details
-
UnassignRegionHandler
public UnassignRegionHandler(HRegionServer server, String encodedName, long closeProcId, boolean abort, @Nullable ServerName destination, EventType eventType) -
UnassignRegionHandler
public UnassignRegionHandler(HRegionServer server, String encodedName, long closeProcId, boolean abort, @Nullable ServerName destination, EventType eventType, boolean evictCache)
-
-
Method Details
-
getServer
-
process
Description copied from class:EventHandlerThis method is the main processing loop to be implemented by the various subclasses.- Specified by:
processin classEventHandler- Throws:
IOException
-
handleException
Description copied from class:EventHandlerEvent exception handler, may be overridden- Overrides:
handleExceptionin classEventHandler- Parameters:
t- Throwable object
-
create
public static UnassignRegionHandler create(HRegionServer server, String encodedName, long closeProcId, boolean abort, @Nullable ServerName destination, boolean evictCache)
-