@InterfaceAudience.Private public class AssignRegionHandler extends EventHandler
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.eventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
AssignRegionHandler(HRegionServer server,
RegionInfo regionInfo,
long openProcId,
TableDescriptor tableDesc,
long masterSystemTime,
EventType eventType) |
| Modifier and Type | Method and Description |
|---|---|
static AssignRegionHandler |
create(HRegionServer server,
RegionInfo regionInfo,
long openProcId,
TableDescriptor tableDesc,
long masterSystemTime) |
protected void |
handleException(Throwable t)
Event exception handler, may be overridden
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
compareTo, getEventType, getInformativeName, getPriority, getSeqid, prepare, run, toStringpublic AssignRegionHandler(HRegionServer server, RegionInfo regionInfo, long openProcId, @Nullable TableDescriptor tableDesc, long masterSystemTime, EventType eventType)
public void process()
throws IOException
EventHandlerprocess in class EventHandlerIOExceptionprotected void handleException(Throwable t)
EventHandlerhandleException in class EventHandlert - Throwable objectpublic static AssignRegionHandler create(HRegionServer server, RegionInfo regionInfo, long openProcId, TableDescriptor tableDesc, long masterSystemTime)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.