Class BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter>
org.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
org.apache.hadoop.hbase.replication.BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.replication.regionserver.WALFileLengthProvider
,org.apache.hadoop.hbase.wal.WAL
- Enclosing class:
- BrokenRemoteAsyncFSWALProvider
static class BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL
extends org.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate final class
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.wal.WAL
org.apache.hadoop.hbase.wal.WAL.Entry
-
Field Summary
Modifier and TypeFieldDescriptionprivate CountDownLatch
private boolean
private boolean
private CountDownLatch
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
ASYNC_WAL_USE_SHARED_EVENT_LOOP, ASYNC_WAL_WAIT_ON_SHUTDOWN_IN_SECONDS, DEFAULT_ASYNC_WAL_USE_SHARED_EVENT_LOOP, DEFAULT_ASYNC_WAL_WAIT_ON_SHUTDOWN_IN_SECONDS
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL
abortable, blocksize, closed, closeExecutor, conf, consumeExecutor, consumer, coprocessorHost, DEFAULT_ROLL_ON_SYNC_TIME_MS, DEFAULT_SLOW_SYNC_ROLL_INTERVAL_MS, DEFAULT_SLOW_SYNC_ROLL_THRESHOLD, DEFAULT_SLOW_SYNC_TIME_MS, DEFAULT_WAL_BATCH_SIZE, DEFAULT_WAL_SHUTDOWN_WAIT_TIMEOUT_MS, DEFAULT_WAL_SYNC_TIMEOUT_MS, filenum, fs, hasConsumerTask, highestProcessedAppendTxid, highestSyncedTxid, highestUnsyncedTxid, implClassName, inflightWALClosures, listeners, logrollsize, MAX_LOGS, maxLogs, numEntries, ourFiles, prefixPathStr, RING_BUFFER_SLOT_COUNT, ROLL_ON_SYNC_TIME_MS, rollOnSyncNs, rollRequested, rollWriterLock, sequenceIdAccounting, shouldShutDownConsumeExecutorWhenClose, shutdown, SLOW_SYNC_ROLL_INTERVAL_MS, SLOW_SYNC_ROLL_THRESHOLD, SLOW_SYNC_TIME_MS, slowSyncCheckInterval, slowSyncCount, slowSyncNs, slowSyncRollThreshold, syncFutureCache, syncFutures, totalLogSize, toWriteAppends, unackedAppends, useHsync, WAL_AVOID_LOCAL_WRITES_DEFAULT, WAL_AVOID_LOCAL_WRITES_KEY, WAL_BATCH_SIZE, WAL_ROLL_MULTIPLIER, WAL_SHUTDOWN_WAIT_TIMEOUT_MS, WAL_SYNC_TIMEOUT_MS, walArchiveDir, walDir, walFile2Props, walFilePrefix, walFileSuffix, walShutdownTimeout
-
Constructor Summary
ConstructorDescriptionBrokenRemoteAsyncFSWAL
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.Abortable abortable, org.apache.hadoop.fs.Path rootDir, String logDir, String archiveDir, org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.regionserver.wal.WALActionsListener> listeners, boolean failIfWALExists, String prefix, String suffix, org.apache.hadoop.fs.FileSystem remoteFs, org.apache.hadoop.fs.Path remoteWALDir, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter
createCombinedWriter
(org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter localWriter, org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter remoteWriter) protected org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter
createWriterInstance
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) void
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
createAsyncWriter, doAppend, doCheckLogLowReplication, doWriterSync, onWriterReplaced
Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL
abortCacheFlush, append, appendData, appendEntry, appendMarker, archive, archiveLogFile, atHeadOfRingBufferEventHandlerAppend, blockOnSync, checkLogLowReplication, checkSlowSyncCount, close, closeWriter, completeCacheFlush, computeFilename, createSingleThreadPoolConsumeExecutor, doCheckSlowSync, doCleanUpResources, doReplaceWriter, doShutdown, doSync, doSync, getCoprocessorHost, getCurrentFileName, getEarliestMemStoreSeqNum, getFilenum, getFileNumFromFileName, getInflightWALCloseCount, getLogFileSize, getLogFileSizeIfBeingWritten, getNumLogFiles, getNumRolledLogFiles, getOldPath, getPreallocatedEventCount, getSequenceIdAccounting, getSyncedTxid, getSyncFuture, getWALArchivePath, init, isLogRollRequested, isWriterBroken, logRollAndSetupWalProps, main, markFutureDoneAndOffer, postSync, registerWALActionsListener, requestLogRoll, requestLogRoll, rollWriter, rollWriter, setWaitOnShutdownInSeconds, shutdown, skipRemoteWAL, stampSequenceIdAndPublishToRingBuffer, startCacheFlush, startCacheFlush, sync, sync, sync, sync, toString, unregisterWALActionsListener, updateStore, waitForSafePoint
-
Field Details
-
localBroken
-
remoteBroken
-
arrive
-
resume
-
-
Constructor Details
-
BrokenRemoteAsyncFSWAL
public BrokenRemoteAsyncFSWAL(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.Abortable abortable, org.apache.hadoop.fs.Path rootDir, String logDir, String archiveDir, org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.regionserver.wal.WALActionsListener> listeners, boolean failIfWALExists, String prefix, String suffix, org.apache.hadoop.fs.FileSystem remoteFs, org.apache.hadoop.fs.Path remoteWALDir, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor) throws org.apache.hadoop.hbase.regionserver.wal.FailedLogCloseException, IOException - Throws:
org.apache.hadoop.hbase.regionserver.wal.FailedLogCloseException
IOException
-
-
Method Details
-
setLocalBroken
-
setRemoteBroken
-
suspendLogRoll
-
waitUntilArrive
- Throws:
InterruptedException
-
resumeLogRoll
-
createCombinedWriter
protected org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter createCombinedWriter(org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter localWriter, org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter remoteWriter) - Overrides:
createCombinedWriter
in classorg.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
-
createWriterInstance
protected org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter createWriterInstance(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException - Overrides:
createWriterInstance
in classorg.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL
- Throws:
IOException
-