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

When a serializer class is missing, return null, not throw an NPE.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.2
    • 0.23.0
    • io
    • Reviewed
    • logging, exception, serializers, serializationfactory

    Description

      When you have a key/value class that's non Writable and you forget to attach io.serializers for the same, an NPE is thrown by the tasks with no information on why or what's missing and what led to it. I think a better exception can be thrown by SerializationFactory instead of an NPE when a class is not found accepted by any of the loaded ones.

      Attachments

        1. 0.20-security-HADOOP-7328.r7.diff
          3 kB
          Harsh J
        2. 0.23-HADOOP-7328.r7.diff
          6 kB
          Harsh J
        3. HADOOP-7328.r1.diff
          1 kB
          Harsh J
        4. HADOOP-7328.r2.diff
          3 kB
          Harsh J
        5. HADOOP-7328.r3.diff
          4 kB
          Harsh J
        6. HADOOP-7328.r4.diff
          4 kB
          Harsh J
        7. HADOOP-7328.r4.diff
          4 kB
          Harsh J
        8. HADOOP-7328.r5.diff
          5 kB
          Harsh J
        9. HADOOP-7328.r6.diff
          5 kB
          Harsh J
        10. HADOOP-7328.r7.diff
          6 kB
          Harsh J

        Issue Links

        Activity

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

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment