Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12805

Ozone: Redundant characters printed in exception log

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: HDFS-7240
    • Fix Version/s: HDFS-7240
    • Component/s: ozone
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      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());

        Attachments

        1. HDFS-12805-HDFS-7240.001.patch
          6 kB
          Yiqun Lin
        2. HDFS-12805-HDFS-7240.002.patch
          6 kB
          Yiqun Lin

          Activity

            People

            • Assignee:
              linyiqun Yiqun Lin
              Reporter:
              linyiqun Yiqun Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: