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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.20.0
    • io
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: