@InterfaceAudience.Private public class MasterWalManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.PathFilter |
NON_META_FILTER
Filter *out* WAL files that are for the hbase:meta Region; i.e.
|
| Constructor and Description |
|---|
MasterWalManager(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
MasterServices services) |
MasterWalManager(MasterServices services) |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveMetaLog(ServerName serverName)
The hbase:meta region may OPEN and CLOSE without issue on a server and then move elsewhere.
|
Set<ServerName> |
getFailedServersFromLogFolders()
Deprecated.
With proc-v2, we can record the crash server with procedure store, so do not need
to scan the wal directory to find out the splitting wal directory any more. Leave
it here only because
RecoverMetaProcedure(which is also deprecated) uses
it. |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
Set<ServerName> |
getLiveServersFromWALDir()
Get Servernames that COULD BE 'alive'; excludes those that have a '-splitting' suffix as these
are already being split -- they cannot be 'alive'.
|
Set<ServerName> |
getServerNamesFromWALDirPath(org.apache.hadoop.fs.PathFilter filter)
Returns listing of ServerNames found by parsing WAL directory paths in FS.
|
Set<ServerName> |
getSplittingServersFromWALDir()
Get Servernames which are currently splitting; paths have a '-splitting' suffix.
|
org.apache.hadoop.fs.FileStatus[] |
getWALDirPaths(org.apache.hadoop.fs.PathFilter filter)
Returns List of all RegionServer WAL dirs; i.e.
|
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 static final org.apache.hadoop.fs.PathFilter NON_META_FILTER
public MasterWalManager(MasterServices services) throws IOException
IOExceptionpublic MasterWalManager(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
MasterServices services)
throws IOException
IOExceptionpublic void stop()
public org.apache.hadoop.fs.FileSystem getFileSystem()
public Set<ServerName> getSplittingServersFromWALDir() throws IOException
IOExceptionpublic Set<ServerName> getLiveServersFromWALDir() throws IOException
IOExceptionpublic Set<ServerName> getServerNamesFromWALDirPath(org.apache.hadoop.fs.PathFilter filter) throws IOException
IOExceptionpublic org.apache.hadoop.fs.FileStatus[] getWALDirPaths(org.apache.hadoop.fs.PathFilter filter)
throws IOException
IOException@Deprecated public Set<ServerName> getFailedServersFromLogFolders() throws IOException
RecoverMetaProcedure(which is also deprecated) uses
it.IOExceptionpublic void splitLog(ServerName serverName) throws IOException
IOExceptionpublic void splitMetaLog(ServerName serverName) throws IOException
serverName - logs belonging to this server will be splitIOExceptionpublic void splitMetaLog(Set<ServerName> serverNames) throws IOException
serverNames - logs belonging to these servers will be splitIOExceptionpublic void splitLog(Set<ServerName> serverNames) throws IOException
IOExceptionpublic 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 serverIOExceptionpublic void archiveMetaLog(ServerName serverName)
serverName - the server to archive meta logCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.