Hadoop Common
  1. Hadoop Common
  2. HADOOP-7328

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.2
    • Fix Version/s: 0.23.0
    • Component/s: io
    • Labels:
    • Hadoop Flags:
      Reviewed
    • Tags:
      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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Harsh J
              Reporter:
              Harsh J
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development