Class OpenRegionHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler
- All Implemented Interfaces:
Comparable<EventHandler>,Runnable
- Direct Known Subclasses:
OpenMetaHandler,OpenPriorityRegionHandler
Deprecated.
Keep it here only for compatible
Handles opening of a region on a region server.
This is executed after receiving an OPEN RPC from the master or client.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classDeprecated.Thread to run region post open tasks. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TableDescriptorDeprecated.private static final org.slf4j.LoggerDeprecated.private final longDeprecated.private final RegionInfoDeprecated.protected final RegionServerServicesDeprecated.Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents -
Constructor Summary
ConstructorsModifierConstructorDescriptionOpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime) Deprecated.protectedOpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime, EventType eventType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcleanupFailedOpen(HRegion region) Deprecated.private voiddoCleanUpOnFailedOpen(HRegion region) Deprecated.Deprecated.private booleanDeprecated.private static booleanisRegionStillOpening(RegionInfo regionInfo, RegionServerServices rsServices) Deprecated.private HRegionDeprecated.Returns Instance of HRegion if successful open else null.voidprocess()Deprecated.This method is the main processing loop to be implemented by the various subclasses.private booleanupdateMeta(HRegion r, long masterSystemTime) Deprecated.Update ZK or META.Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler
compareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, prepare, run, toString
-
Field Details
-
LOG
Deprecated. -
rsServices
Deprecated. -
regionInfo
Deprecated. -
htd
Deprecated. -
masterSystemTime
Deprecated.
-
-
Constructor Details
-
OpenRegionHandler
public OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime) Deprecated. -
OpenRegionHandler
protected OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime, EventType eventType) Deprecated.
-
-
Method Details
-
getRegionInfo
Deprecated. -
process
Deprecated.Description copied from class:EventHandlerThis method is the main processing loop to be implemented by the various subclasses.- Specified by:
processin classEventHandler- Throws:
IOException
-
doCleanUpOnFailedOpen
Deprecated.- Throws:
IOException
-
updateMeta
Deprecated.Update ZK or META. This can take a while if for example the hbase:meta is not available -- if server hosting hbase:meta crashed and we are waiting on it to come back -- so run in a thread and keep updating znode state meantime so master doesn't timeout our region-in-transition. Caller must cleanup region if this fails. -
openRegion
Deprecated.Returns Instance of HRegion if successful open else null. -
cleanupFailedOpen
Deprecated.- Throws:
IOException
-
isRegionStillOpening
Deprecated. -
isRegionStillOpening
Deprecated.
-