org.apache.hadoop.hbase.master.handler
Class LogReplayHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.LogReplayHandler
- All Implemented Interfaces:
- Comparable<Runnable>, Runnable
@InterfaceAudience.Private
public class LogReplayHandler
- extends EventHandler
Handle logReplay work from SSH. Having a separate handler is not to block SSH in re-assigning
regions from dead servers. Otherwise, available SSH handlers could be blocked by logReplay work
(from MasterFileSystem.splitLog(ServerName)
). During logReplay, if a receiving RS(say A)
fails again, regions on A won't be able to be assigned to another live RS which causes the log
replay unable to complete because WAL edits replay depends on receiving RS to be live
Method Summary |
void |
process()
This method is the main processing loop to be implemented by the various
subclasses. |
String |
toString()
|
master
protected final Server master
services
protected final MasterServices services
deadServers
protected final DeadServer deadServers
LogReplayHandler
public LogReplayHandler(Server server,
MasterServices services,
DeadServer deadServers,
ServerName serverName)
toString
public String toString()
- Overrides:
toString
in class EventHandler
process
public void process()
throws IOException
- Description copied from class:
EventHandler
- This method is the main processing loop to be implemented by the various
subclasses.
- Specified by:
process
in class EventHandler
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.