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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.1.0, 3.0.3
    • None
    • 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.01.patch
          27 kB
          Andras Bokor
        2. HADOOP-10571.01.patch
          47 kB
          Arpit Agarwal
        3. HADOOP-10571.02.patch
          164 kB
          Andras Bokor
        4. HADOOP-10571.03.patch
          164 kB
          Andras Bokor
        5. HADOOP-10571.04.patch
          164 kB
          Andras Bokor
        6. HADOOP-10571.05.patch
          163 kB
          Andras Bokor
        7. HADOOP-10571.06.patch
          163 kB
          Andras Bokor
        8. HADOOP-10571.07.patch
          163 kB
          Andras Bokor
        9. HADOOP-10571-branch-3.0.001.patch
          160 kB
          Andras Bokor
        10. HADOOP-10571-branch-3.0.002.patch
          160 kB
          Andras Bokor

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            boky01 Andras Bokor Assign to me
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment