From 6fe755f0c7395ae6dbbb4391a62ba8fe1f23fff9 Mon Sep 17 00:00:00 2001 From: Chao Sun Date: Wed, 8 Aug 2018 13:09:39 -0700 Subject: [PATCH] HDFS-13789. Reduce logging frequency of QuorumJournalManager#selectInputStreams. Contributed by Erik Krogen. --- .../hadoop/hdfs/qjournal/client/QuorumJournalManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/QuorumJournalManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/QuorumJournalManager.java index 5525e92dd3f..a948afb6508 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/QuorumJournalManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/QuorumJournalManager.java @@ -499,8 +499,10 @@ public class QuorumJournalManager implements JournalManager { // the cache used for RPC calls is not enabled; fall back to using the // streaming mechanism to serve such requests if (inProgressOk && inProgressTailingEnabled) { - LOG.info("Tailing edits starting from txn ID " + fromTxnId + - " via RPC mechanism"); + if (LOG.isDebugEnabled()) { + LOG.debug("Tailing edits starting from txn ID " + fromTxnId + + " via RPC mechanism"); + } try { Collection rpcStreams = new ArrayList<>(); selectRpcInputStreams(rpcStreams, fromTxnId, onlyDurableTxns);