Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      There are many places that using Logger.error(String format, Object... arguments) incorrectly.
      A example:

      LOG.error("Cannot remove {}", path, e);
      

      The exception passed here is no meaning and won't be printed. Actually it should be update to

      LOG.error("Cannot remove {}: {}.", path, e.getMessage());
      

      or

      LOG.error("Cannot remove " +  path, e));
      

        Attachments

        1. HDFS-13435.001.patch
          17 kB
          Yiqun Lin
        2. HDFS-13435.002.patch
          10 kB
          Yiqun Lin
        3. HDFS-13435.003.patch
          7 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: