wzhallright commented on a change in pull request #3269:
URL: https://github.com/apache/hadoop/pull/3269#discussion_r683403944



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/QuorumJournalManager.java
##########
@@ -585,8 +585,10 @@ private void 
selectRpcInputStreams(Collection<EditLogInputStream> streams,
     int maxAllowedTxns = !onlyDurableTxns ? highestTxnCount :
         responseCounts.get(responseCounts.size() - loggers.getMajoritySize());
     if (maxAllowedTxns == 0) {
-      LOG.debug("No new edits available in logs; requested starting from " +
-          "ID " + fromTxnId);
+      if (LOG.isDebugEnabled()) {
+        LOG.debug("No new edits available in logs; requested starting from " +
+            "ID " + fromTxnId);
+      }

Review comment:
       Thanks for review @sodonnel ,I will change it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to