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

SerializationFactory should use current context ClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.18.1, 0.19.0
    • 0.18.2
    • None
    • None
    • 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.patch
          1 kB
          Chris Wensel
        2. hadoop-4467-v2.patch
          2 kB
          Chris Wensel

        Activity

          People

            cwensel Chris Wensel
            cwensel Chris Wensel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: