Class ProcedureWALFormatReader
java.lang.Object
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormatReader
Deprecated.
Since 2.3.0, will be removed in 4.0.0. Keep here only for rolling upgrading, now we
             use the new region based procedure store.
Helper class that loads the procedures stored in a WAL.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ProcedureWALFormat.LoaderDeprecated.private final WALProcedureMapDeprecated.We will use the localProcedureMap to track the active procedures for the current proc wal file, and when we finished reading one proc wal file, we will merge he localProcedureMap to the procedureMap, which tracks the global active procedures.private ProcedureStoreTrackerDeprecated.If tracker for a log file is partial (seeProcedureStoreTracker.partial), we re-build the list of procedures modified in that WAL because we need it for log cleaning purposes.private static final org.slf4j.LoggerDeprecated.private longDeprecated.private final WALProcedureMapDeprecated.private final ProcedureStoreTrackerDeprecated.Global tracker that will be used by the WALProcedureStore after load.
- 
Constructor SummaryConstructorsConstructorDescriptionProcedureWALFormatReader(ProcedureStoreTracker tracker, ProcedureWALFormat.Loader loader) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprivate voiddeleteEntry(long procId) Deprecated.voidfinish()Deprecated.private voidinsertIfPartial(ProcedureStoreTracker tracker, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc) Deprecated.private booleanisDeleted(long procId) Deprecated.private booleanisRequired(long procId) Deprecated.private voidloadProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc) Deprecated.voidread(ProcedureWALFile log) Deprecated.private voidreadDeleteEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.private voidreadInitEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.private voidreadInsertEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.private voidreadUpdateEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.private voidsetDeletedIfPartial(ProcedureStoreTracker tracker, long procId) Deprecated.
- 
Field Details- 
LOGDeprecated.
- 
localProcedureMapDeprecated.We will use the localProcedureMap to track the active procedures for the current proc wal file, and when we finished reading one proc wal file, we will merge he localProcedureMap to the procedureMap, which tracks the global active procedures. See the comments ofWALProcedureMapfor more details. After reading all the proc wal files, we will use the procedures in the procedureMap to build aProcedureTree, and then give the result to the upper layer. See the comments ofProcedureTreeand the code infinish()for more details.
- 
procedureMapDeprecated.
- 
loaderDeprecated.
- 
trackerDeprecated.Global tracker that will be used by the WALProcedureStore after load. If the last WAL was closed cleanly we already have a full tracker ready to be used. If the last WAL was truncated (e.g. master killed) the tracker will be empty and the 'partial' flag will be set. In this case, on WAL replay we are going to rebuild the tracker.
- 
localTrackerDeprecated.If tracker for a log file is partial (seeProcedureStoreTracker.partial), we re-build the list of procedures modified in that WAL because we need it for log cleaning purposes. If all procedures modified in a WAL are found to be obsolete, it can be safely deleted. (seeWALProcedureStore.removeInactiveLogs()). Notice that, the deleted part for this tracker will not be global valid as we can only count the deletes in the current file, but it is not big problem as finally, the above tracker will have the global state of deleted, and it will also be used to build the cleanup tracker.
- 
maxProcIdDeprecated.
 
- 
- 
Constructor Details- 
ProcedureWALFormatReaderDeprecated.
 
- 
- 
Method Details- 
readDeprecated.- Throws:
- IOException
 
- 
finishDeprecated.- Throws:
- IOException
 
- 
setDeletedIfPartialDeprecated.
- 
insertIfPartialprivate void insertIfPartial(ProcedureStoreTracker tracker, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc) Deprecated.
- 
loadProcedureprivate void loadProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc) Deprecated.
- 
readInitEntryprivate void readInitEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.
- 
readInsertEntryprivate void readInsertEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.
- 
readUpdateEntryprivate void readUpdateEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.
- 
readDeleteEntryprivate void readDeleteEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) Deprecated.
- 
deleteEntryDeprecated.
- 
isDeletedDeprecated.
- 
isRequiredDeprecated.
 
-