@InterfaceAudience.Private public class WALSplitter extends Object
splitWAL(FileStatus, CancelableProgressable) per file or use static helper methods.| Modifier and Type | Class and Description |
|---|---|
static class |
WALSplitter.PipelineController
Contains some methods to control WAL-entries producer / consumer interactions
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
static boolean |
DEFAULT_WAL_SPLIT_TO_HFILE |
protected Map<String,Long> |
lastFlushedSequenceIds |
protected Map<String,Map<byte[],Long>> |
regionMaxSeqIdInStores |
protected LastSequenceId |
sequenceIdChecker |
static boolean |
SPLIT_SKIP_ERRORS_DEFAULT
By default we retry errors in splitting, rather than skipping.
|
static String |
SPLIT_SKIP_ERRORS_KEY |
static String |
SPLIT_WAL_BUFFER_SIZE |
static String |
SPLIT_WAL_WRITER_THREADS |
static String |
SPLIT_WRITER_CREATION_BOUNDED
True if we are to run with bounded amount of writers rather than let the count blossom.
|
static String |
WAL_SPLIT_TO_HFILE
Split WAL directly to hfiles instead of into intermediary 'recovered.edits' files.
|
protected org.apache.hadoop.fs.FileSystem |
walFS |
protected org.apache.hadoop.fs.Path |
walRootDir |
| Modifier and Type | Method and Description |
|---|---|
protected WALProvider.Writer |
createWriter(org.apache.hadoop.fs.Path logfile)
Create a new
WALProvider.Writer for writing log splits. |
protected WAL.Reader |
getReader(org.apache.hadoop.fs.FileStatus walStatus,
boolean skipErrors,
CancelableProgressable cancel)
Create a new
WAL.Reader for reading logs to split. |
static List<org.apache.hadoop.fs.Path> |
split(org.apache.hadoop.fs.Path walRootDir,
org.apache.hadoop.fs.Path walsDir,
org.apache.hadoop.fs.Path archiveDir,
org.apache.hadoop.fs.FileSystem walFS,
org.apache.hadoop.conf.Configuration conf,
WALFactory factory)
Split a folder of WAL files.
|
static boolean |
splitLogFile(org.apache.hadoop.fs.Path walDir,
org.apache.hadoop.fs.FileStatus logfile,
org.apache.hadoop.fs.FileSystem walFS,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter,
LastSequenceId idChecker,
SplitLogWorkerCoordination splitLogWorkerCoordination,
WALFactory factory,
RegionServerServices rsServices)
Splits a WAL file.
|
public static final String SPLIT_SKIP_ERRORS_KEY
public static final boolean SPLIT_SKIP_ERRORS_DEFAULT
protected final org.apache.hadoop.fs.Path walRootDir
protected final org.apache.hadoop.fs.FileSystem walFS
protected final org.apache.hadoop.conf.Configuration conf
protected final LastSequenceId sequenceIdChecker
public static final String WAL_SPLIT_TO_HFILE
public static final boolean DEFAULT_WAL_SPLIT_TO_HFILE
public static final String SPLIT_WRITER_CREATION_BOUNDED
public static final String SPLIT_WAL_BUFFER_SIZE
public static final String SPLIT_WAL_WRITER_THREADS
public static boolean splitLogFile(org.apache.hadoop.fs.Path walDir,
org.apache.hadoop.fs.FileStatus logfile,
org.apache.hadoop.fs.FileSystem walFS,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter,
LastSequenceId idChecker,
SplitLogWorkerCoordination splitLogWorkerCoordination,
WALFactory factory,
RegionServerServices rsServices)
throws IOException
SplitLogWorker and
tests. Not used by new procedure-based WAL splitter.IOExceptionpublic static List<org.apache.hadoop.fs.Path> split(org.apache.hadoop.fs.Path walRootDir, org.apache.hadoop.fs.Path walsDir, org.apache.hadoop.fs.Path archiveDir, org.apache.hadoop.fs.FileSystem walFS, org.apache.hadoop.conf.Configuration conf, WALFactory factory) throws IOException
IOExceptionprotected WAL.Reader getReader(org.apache.hadoop.fs.FileStatus walStatus, boolean skipErrors, CancelableProgressable cancel) throws IOException, org.apache.hadoop.hbase.wal.WALSplitter.CorruptedLogFileException
WAL.Reader for reading logs to split.IOExceptionorg.apache.hadoop.hbase.wal.WALSplitter.CorruptedLogFileExceptionprotected WALProvider.Writer createWriter(org.apache.hadoop.fs.Path logfile) throws IOException
WALProvider.Writer for writing log splits.IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.