hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12805) Ozone: Redundant characters printed in exception log
Date Mon, 13 Nov 2017 02:57:00 GMT
Yiqun Lin created HDFS-12805:

             Summary: Ozone: Redundant characters printed in exception log
                 Key: HDFS-12805
                 URL: https://issues.apache.org/jira/browse/HDFS-12805
             Project: Hadoop HDFS
          Issue Type: Sub-task
          Components: ozone
    Affects Versions: HDFS-7240
            Reporter: Yiqun Lin
            Priority: Minor

Found some incorrect usage of sl4j in class {{Volume/Bucket/KeyProcessTemplate.class}}.
For Example line100 in {{VolumeProcessTemplate#handleCall(}},
We use {{LOG.error("illegal argument. {}", ex);}} to print error info. It will invoke {{
Logger.error(String msg, Throwable t)}} not {{Logger.debug(String format, Object arg1)}}.
Redundant characters '{}' will be printed in exception log.

The correct usage of this should be {{LOG.error("illegal argument. {}", ex.toString());}}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message