@InterfaceAudience.Private public final class WALProcedureTree extends Object
checkReady(Entry, Map)
method.
For the procedures not in any group, i.e, can not find the root procedure for these procedures,
we will also consider them as corrupted. Please see the code in checkOrphan(Map)
method.Modifier and Type | Class and Description |
---|---|
private static class |
WALProcedureTree.Entry |
private static class |
WALProcedureTree.Iter |
private static class |
WALProcedureTree.ProtoAndProc |
Modifier and Type | Field and Description |
---|---|
private List<WALProcedureTree.ProtoAndProc> |
corruptedProcs |
private static org.slf4j.Logger |
LOG |
private List<WALProcedureTree.ProtoAndProc> |
validProcs |
Modifier | Constructor and Description |
---|---|
private |
WALProcedureTree(Map<Long,WALProcedureTree.Entry> procMap) |
private static final org.slf4j.Logger LOG
private final List<WALProcedureTree.ProtoAndProc> validProcs
private final List<WALProcedureTree.ProtoAndProc> corruptedProcs
private WALProcedureTree(Map<Long,WALProcedureTree.Entry> procMap)
private static boolean isFinished(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proc)
private List<WALProcedureTree.Entry> buildTree(Map<Long,WALProcedureTree.Entry> procMap)
private void collectStackId(WALProcedureTree.Entry entry, Map<Integer,List<WALProcedureTree.Entry>> stackId2Proc, org.apache.commons.lang3.mutable.MutableInt maxStackId)
private void addAllToCorruptedAndRemoveFromProcMap(WALProcedureTree.Entry entry, Map<Long,WALProcedureTree.Entry> remainingProcMap)
private void addAllToValidAndRemoveFromProcMap(WALProcedureTree.Entry entry, Map<Long,WALProcedureTree.Entry> remainingProcMap)
private void checkReady(WALProcedureTree.Entry rootEntry, Map<Long,WALProcedureTree.Entry> remainingProcMap)
private void checkOrphan(Map<Long,WALProcedureTree.Entry> procMap)
public ProcedureStore.ProcedureIterator getValidProcs()
public ProcedureStore.ProcedureIterator getCorruptedProcs()
public static WALProcedureTree build(Collection<org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure> procedures)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.