Hadoop Common
  1. Hadoop Common
  2. HADOOP-4467

SerializationFactory should use current context ClassLoader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.18.1, 0.19.0
    • Fix Version/s: 0.18.2
    • Component/s: None
    • Labels:
      None
    • Release Note:
      SerializationFactory now uses the current context ClassLoader allowing for user supplied Serialization instances.

      Description

      SerializationFactory#add calls Class.forName without a ClassLoader instance. This prevents user-space Serialization classes from being loaded.

      The resulting ClassNotFoundException is eaten after being logged, and a NPE is thrown further down the line when a Serializer is requested.

      1. hadoop-4467.patch
        1 kB
        Chris K Wensel
      2. hadoop-4467-v2.patch
        2 kB
        Chris K Wensel

        Activity

        Chris K Wensel created issue -
        Chris K Wensel made changes -
        Field Original Value New Value
        Summary SerializationFactory should use current contextClassLoader SerializationFactory should use current context ClassLoader
        Affects Version/s 0.18.1 [ 12313357 ]
        Description SerializationFactory#add calls Class.forName without a ClassLoader instance. This prevents user-space Serialization classes from being loaded.

        The resulting ClassNotFoundException is eaten after being logged, and a NPE is thrown further down the line when a Serializer is requested.
        Chris K Wensel made changes -
        Affects Version/s 0.19.0 [ 12313211 ]
        Chris K Wensel made changes -
        Attachment hadoop-4467.patch [ 12392530 ]
        Chris K Wensel made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note SerializationFactory now uses the current context ClassLoader allowing for user supplied Serialization instances.
        Chris K Wensel made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Chris K Wensel made changes -
        Attachment hadoop-4467-v2.patch [ 12392536 ]
        Chris K Wensel made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Chris K Wensel made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Arun C Murthy made changes -
        Fix Version/s 0.18.2 [ 12313424 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Assignee Chris K Wensel [ cwensel ]
        Nigel Daley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Chris K Wensel
            Reporter:
            Chris K Wensel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development