Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10571

Use Log.*(Object, Throwable) overload to log exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.1.0, 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      When logging an exception, we often convert the exception to string or call .getMessage. Instead we can use the log method overloads which take Throwable as a parameter.

        Attachments

        1. HADOOP-10571-branch-3.0.002.patch
          160 kB
          Andras Bokor
        2. HADOOP-10571-branch-3.0.001.patch
          160 kB
          Andras Bokor
        3. HADOOP-10571.07.patch
          163 kB
          Andras Bokor
        4. HADOOP-10571.06.patch
          163 kB
          Andras Bokor
        5. HADOOP-10571.05.patch
          163 kB
          Andras Bokor
        6. HADOOP-10571.04.patch
          164 kB
          Andras Bokor
        7. HADOOP-10571.03.patch
          164 kB
          Andras Bokor
        8. HADOOP-10571.02.patch
          164 kB
          Andras Bokor
        9. HADOOP-10571.01.patch
          27 kB
          Andras Bokor
        10. HADOOP-10571.01.patch
          47 kB
          Arpit Agarwal

          Issue Links

            Activity

              People

              • Assignee:
                boky01 Andras Bokor
                Reporter:
                arpitagarwal Arpit Agarwal
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: