Class ReplaySyncReplicationWALCallable
java.lang.Object
org.apache.hadoop.hbase.procedure2.BaseRSProcedureCallable
org.apache.hadoop.hbase.replication.regionserver.ReplaySyncReplicationWALCallable
- All Implemented Interfaces:
Callable<byte[]>,RSProcedureCallable
This callable executed at RS side to replay sync replication wal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate static final longprivate static final org.slf4j.Loggerprivate Stringprivate static final StringFields inherited from class org.apache.hadoop.hbase.procedure2.BaseRSProcedureCallable
rs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]doCall()private booleanEvent type used to select thread pool.private WALStreamReaderprotected voidinitParameter(byte[] parameter) readWALEntries(WALStreamReader reader, String wal) private voidMethods inherited from class org.apache.hadoop.hbase.procedure2.BaseRSProcedureCallable
call, init
-
Field Details
-
LOG
-
REPLAY_SYNC_REPLICATION_WAL_BATCH_SIZE
- See Also:
-
DEFAULT_REPLAY_SYNC_REPLICATION_WAL_BATCH_SIZE
- See Also:
-
peerId
-
wals
-
batchSize
-
peersLock
-
-
Constructor Details
-
ReplaySyncReplicationWALCallable
public ReplaySyncReplicationWALCallable()
-
-
Method Details
-
doCall
- Specified by:
doCallin classBaseRSProcedureCallable- Throws:
Exception
-
initParameter
protected void initParameter(byte[] parameter) throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException - Specified by:
initParameterin classBaseRSProcedureCallable- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
-
getEventType
Description copied from interface:RSProcedureCallableEvent type used to select thread pool. -
replayWAL
- Throws:
IOException
-
getReader
- Throws:
IOException
-
filter
-
readWALEntries
- Throws:
IOException
-