This is an automated email from the ASF dual-hosted git repository.

umamahesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b5dc0fa68 HDDS-6899. EC: remove warnings and errors from console 
during online reconstruction of data. (#3632)
6b5dc0fa68 is described below

commit 6b5dc0fa68ab6bbf53e5f6c758fe14a0729781b6
Author: swamirishi <[email protected]>
AuthorDate: Wed Jul 27 15:32:26 2022 -0700

    HDDS-6899. EC: remove warnings and errors from console during online 
reconstruction of data. (#3632)
---
 .../java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java     | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
 
b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
index 457d674729..5415ecb88e 100644
--- 
a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
+++ 
b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
@@ -440,8 +440,14 @@ public class XceiverClientGrpc extends XceiverClientSpi {
       return reply;
     } else {
       Objects.requireNonNull(ioException);
-      LOG.error("Failed to execute command {} on the pipeline {}.",
-          processForDebug(request), pipeline);
+      String message = "Failed to execute command {}";
+      if (LOG.isDebugEnabled()) {
+        LOG.debug(message + " on the pipeline {}.",
+                processForDebug(request), pipeline);
+      } else {
+        LOG.error(message + " on the pipeline {}.",
+                request.getCmdType(), pipeline);
+      }
       throw ioException;
     }
   }


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

Reply via email to