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

MapWritable NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.20.1, 0.21.0
    • None
    • io
    • Hadoop 0.20.1, Centos

    • Found a NullPointerException with MapWritable. The root cause is the counter newClasses in AbstractMapWritable is allowed to get out of sync with the id to class mapping tables when addToMap(Class) is called.

    Description

      We have encountered a NullPointerException when we use MapWritable with custom Writable objects.

      The root cause is the counter newClasses in AbstractMapWritable is allowed to get out of sync with the id to class mapping tables when addToMap(Class) is called. We have a patch to AbstractMapWritable.addToMap(Class) that handles the case when newClasses gets out of sync with the id to class mapping tables and adds a serialization optimization to minimize the number of class names to write out per MapWritable object.

      Attachments

        1. HADOOP-7021.patch
          3 kB
          tom pierce
        2. HADOOP-7021.patch
          3 kB
          John Lee
        3. HADOOP-7021.patch
          3 kB
          John Lee
        4. HADOOP-7021.patch
          3 kB
          John Lee
        5. HADOOP-7021.02.patch
          3 kB
          Ravi Prakash

        Activity

          People

            jlee@mindset-media.com John Lee
            jlee@mindset-media.com John Lee
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: