Class WALProcedureMap
java.lang.Object
org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureMap
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.
This class is used to track the active procedures when loading procedures from proc wal file.
We will read proc wal files from new to old, but when reading a proc wal file, we will still read
from top to bottom, so there are two groups of methods for this class.
The first group is
add(ProcedureProtos.Procedure)
and remove(long)
. It is used
when reading a proc wal file. In these methods, for the same procedure, typically the one comes
later should win, please see the comment for
isIncreasing(ProcedureProtos.Procedure, ProcedureProtos.Procedure)
to see the
exceptions.
The second group is merge(WALProcedureMap)
. We will have a global
WALProcedureMap
to hold global the active procedures, and a local WALProcedureMap
to hold the active procedures for the current proc wal file. And when we finish reading a proc
wal file, we will merge the local one into the global one, by calling the
merge(WALProcedureMap)
method of the global one and pass the local one in. In this
method, for the same procedure, the one comes earlier will win, as we read the proc wal files
from new to old(the reverse order).-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Deprecated.private long
Deprecated.private long
Deprecated.Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc) Deprecated.boolean
contains
(long procId) Deprecated.long
Deprecated.long
Deprecated.Collection<org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure>
Deprecated.boolean
isEmpty()
Deprecated.private static boolean
isIncreasing
(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure current, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure candidate) Deprecated.void
merge
(WALProcedureMap other) Deprecated.Merge the givenWALProcedureMap
into this one.void
remove
(long procId) Deprecated.private void
trackProcId
(long procId) Deprecated.
-
Field Details
-
Constructor Details
-
WALProcedureMap
Deprecated.
-
-
Method Details
-
trackProcId
Deprecated. -
isIncreasing
private static boolean isIncreasing(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure current, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure candidate) Deprecated.- Returns:
- True if this new procedure is 'richer' than the current one else false and we log this incidence where it appears that the WAL has older entries appended after newer ones. See HBASE-18152.
-
add
Deprecated. -
remove
Deprecated. -
isEmpty
Deprecated. -
contains
Deprecated. -
merge
Deprecated.Merge the givenWALProcedureMap
into this one. TheWALProcedureMap
passed in will be cleared after merging. -
getProcedures
public Collection<org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure> getProcedures()Deprecated. -
getMinModifiedProcId
Deprecated. -
getMaxModifiedProcId
Deprecated.
-