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

add name of faulty class to WritableName.getClass IOException upon ClassNotFoundException

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      WritableName.getClass raises an IOException when it cannot load the class. The message is "WritableName can't load class" without the name of the class. Although one can get this from getCause, easier to see it just from the message.

      propose change it to:

      IOException newE = new IOException("WritableName can't load class: " + name);

      I will attach a patch.

        Attachments

        1. patch2.txt
          0.6 kB
          Pete Wyckoff
        2. patch.txt
          0.6 kB
          Pete Wyckoff
        3. HADOOP-3180.1.txt
          4 kB
          Pete Wyckoff

          Activity

            People

            • Assignee:
              wyckoff Pete Wyckoff
              Reporter:
              wyckoff Pete Wyckoff
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: