From b8271c06d50f985245ce3214a88d5ddacffadd30 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Mon, 19 Nov 2018 17:08:41 +0800 Subject: [PATCH] Revert "HBASE-21377 Add debug log for catching the root cause" This reverts commit 3fe8649b2c9ba1271c25e8f476548907e4c7a90d. --- .../apache/hadoop/hbase/procedure2/RootProcedureState.java | 5 ----- .../hadoop/hbase/procedure2/store/wal/WALProcedureTree.java | 3 --- 2 files changed, 8 deletions(-) diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RootProcedureState.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RootProcedureState.java index a7cdaabb248..2fc00301e91 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RootProcedureState.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RootProcedureState.java @@ -24,8 +24,6 @@ import java.util.List; import java.util.Set; import org.apache.yetus.audience.InterfaceAudience; import org.apache.yetus.audience.InterfaceStability; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureState; @@ -44,8 +42,6 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedu @InterfaceStability.Evolving class RootProcedureState { - private static final Logger LOG = LoggerFactory.getLogger(RootProcedureState.class); - private enum State { RUNNING, // The Procedure is running or ready to run FAILED, // The Procedure failed, waiting for the rollback executing @@ -150,7 +146,6 @@ class RootProcedureState { subprocStack = new ArrayList<>(); } proc.addStackIndex(subprocStack.size()); - LOG.debug("Add procedure {} as the {}th rollback step", proc, subprocStack.size()); subprocStack.add(proc); } diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.java index 6e624b4fca2..c32bd7f6d8c 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.java @@ -145,9 +145,6 @@ public final class WALProcedureTree { private void collectStackId(Entry entry, Map> stackId2Proc, MutableInt maxStackId) { - if (LOG.isDebugEnabled()) { - LOG.debug("Procedure {} stack ids={}", entry, entry.proc.getStackIdList()); - } for (int i = 0, n = entry.proc.getStackIdCount(); i < n; i++) { int stackId = entry.proc.getStackId(i); if (stackId > maxStackId.intValue()) {