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
Modifier and TypeClassDescription(package private) static class
Deprecated.Thread to run region post open tasks. -
Field Summary
Modifier and TypeFieldDescriptionprivate final TableDescriptor
Deprecated.private static final org.slf4j.Logger
Deprecated.private final long
Deprecated.private final RegionInfo
Deprecated.protected final RegionServerServices
Deprecated.Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents
-
Constructor Summary
ModifierConstructorDescriptionOpenRegionHandler
(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime) Deprecated.protected
OpenRegionHandler
(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime, EventType eventType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
cleanupFailedOpen
(HRegion region) Deprecated.private void
doCleanUpOnFailedOpen
(HRegion region) Deprecated.Deprecated.private boolean
Deprecated.private static boolean
isRegionStillOpening
(RegionInfo regionInfo, RegionServerServices rsServices) Deprecated.private HRegion
Deprecated.Returns Instance of HRegion if successful open else null.void
process()
Deprecated.This method is the main processing loop to be implemented by the various subclasses.private boolean
updateMeta
(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:EventHandler
This method is the main processing loop to be implemented by the various subclasses.- Specified by:
process
in 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.
-