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

SerializationFactory should use current context ClassLoader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: