Class ObjectStoreProtobufWalWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
org.apache.hadoop.hbase.backup.replication.ObjectStoreProtobufWalWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,FSHLogProvider.Writer,WALProvider.Writer,WALProvider.WriterBase
A custom implementation of
ProtobufLogWriter that provides support for writing
protobuf-based WAL (Write-Ahead Log) entries to object store-backed files.
This class overrides the ProtobufLogWriter.sync(boolean) and
ProtobufLogWriter.initOutput(FileSystem, Path, boolean, int, short, long, StreamSlowMonitor, boolean)
methods to ensure compatibility with object stores, while ignoring specific capability checks
such as HFLUSH and HSYNC. These checks are often not supported by some object stores, and
bypassing them ensures smooth operation in such environments.
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
outputFields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
cellEncoder, compressionContext, compressor, conf, encryptor, length, trailer, trailerWarnSize, trailerWritten -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitOutput(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, int bufferSize, short replication, long blockSize, StreamSlowMonitor monitor, boolean noLocalWrite) voidsync(boolean forceSync) Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
append, close, closeOutputIfNecessary, getOutputStreamForCellEncoder, getStream, getSyncedLength, writeMagicAndWALHeader, writeWALTrailerAndMagicMethods inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
getLength, init, writeWALTrailerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.wal.FSHLogProvider.Writer
initMethods inherited from interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
getLength
-
Field Details
-
syncedLength
-
-
Constructor Details
-
ObjectStoreProtobufWalWriter
public ObjectStoreProtobufWalWriter()
-
-
Method Details
-
sync
- Specified by:
syncin interfaceWALProvider.Writer- Overrides:
syncin classProtobufLogWriter- Throws:
IOException
-
initOutput
protected void initOutput(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, int bufferSize, short replication, long blockSize, StreamSlowMonitor monitor, boolean noLocalWrite) throws IOException - Overrides:
initOutputin classProtobufLogWriter- Throws:
IOException
-