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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • ozone
    • 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.002.patch
          6 kB
          Yiqun Lin
        2. HDFS-12805-HDFS-7240.001.patch
          6 kB
          Yiqun Lin

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: