@InterfaceAudience.Private public class OpenRegionHandler extends EventHandler
This is executed after receiving an OPEN RPC from the master or client.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
OpenRegionHandler.PostOpenDeployTasksThread
Thread to run region post open tasks.
|
Modifier and Type | Field and Description |
---|---|
private TableDescriptor |
htd |
private static org.slf4j.Logger |
LOG |
private long |
masterSystemTime |
private RegionInfo |
regionInfo |
protected RegionServerServices |
rsServices |
eventType, seqids, server, waitingTimeForEvents
Modifier | Constructor and Description |
---|---|
|
OpenRegionHandler(Server server,
RegionServerServices rsServices,
RegionInfo regionInfo,
TableDescriptor htd,
long masterSystemTime) |
protected |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
RegionInfo regionInfo,
TableDescriptor htd,
long masterSystemTime,
EventType eventType) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
cleanupFailedOpen(HRegion region) |
private void |
doCleanUpOnFailedOpen(HRegion region) |
RegionInfo |
getRegionInfo() |
private boolean |
isRegionStillOpening() |
private static boolean |
isRegionStillOpening(RegionInfo regionInfo,
RegionServerServices rsServices) |
(package private) HRegion |
openRegion() |
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
(package private) boolean |
updateMeta(HRegion r,
long masterSystemTime)
Update ZK or META.
|
compareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, prepare, run, toString
private static final org.slf4j.Logger LOG
protected final RegionServerServices rsServices
private final RegionInfo regionInfo
private final TableDescriptor htd
private final long masterSystemTime
public OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime)
protected OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime, EventType eventType)
public RegionInfo getRegionInfo()
public void process() throws IOException
EventHandler
process
in class EventHandler
IOException
private void doCleanUpOnFailedOpen(HRegion region) throws IOException
IOException
boolean updateMeta(HRegion r, long masterSystemTime)
HRegion openRegion()
void cleanupFailedOpen(HRegion region) throws IOException
IOException
private static boolean isRegionStillOpening(RegionInfo regionInfo, RegionServerServices rsServices)
private boolean isRegionStillOpening()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.