@InterfaceAudience.Private public class MasterWalManager extends Object
Constructor and Description |
---|
MasterWalManager(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
MasterServices services) |
MasterWalManager(MasterServices services) |
Modifier and Type | Method and Description |
---|---|
Set<ServerName> |
getFailedServersFromLogFolders()
Inspect the log directory to find dead servers which need recovery work
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
void |
prepareLogReplay(ServerName serverName,
Set<HRegionInfo> regions)
Mark regions in recovering state when distributedLogReplay are set true
|
void |
splitLog(ServerName serverName) |
void |
splitLog(Set<ServerName> serverNames) |
void |
splitLog(Set<ServerName> serverNames,
org.apache.hadoop.fs.PathFilter filter)
This method is the base split method that splits WAL files matching a filter.
|
void |
splitMetaLog(ServerName serverName)
Specialized method to handle the splitting for meta WAL
|
void |
splitMetaLog(Set<ServerName> serverNames)
Specialized method to handle the splitting for meta WAL
|
void |
stop() |
public MasterWalManager(MasterServices services) throws IOException
IOException
public MasterWalManager(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, MasterServices services) throws IOException
IOException
public void stop()
public org.apache.hadoop.fs.FileSystem getFileSystem()
public Set<ServerName> getFailedServersFromLogFolders()
public void splitLog(ServerName serverName) throws IOException
IOException
public void splitMetaLog(ServerName serverName) throws IOException
serverName
- logs belonging to this server will be splitIOException
public void splitMetaLog(Set<ServerName> serverNames) throws IOException
serverNames
- logs belonging to these servers will be splitIOException
public void prepareLogReplay(ServerName serverName, Set<HRegionInfo> regions) throws IOException
serverName
- Failed region server whose wals to be replayedregions
- Set of regions to be recoveredIOException
public void splitLog(Set<ServerName> serverNames) throws IOException
IOException
public void splitLog(Set<ServerName> serverNames, org.apache.hadoop.fs.PathFilter filter) throws IOException
serverNames
- logs belonging to these servers will be split; this will rename the log
directory out from under a soft-failed serverIOException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.