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

MapWritable and SortedMapWritable - Writable problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.15.0
    • io
    • None

    Description

      When using the Writable interface for MapWritable and SortedMapWritable there are two errors:

      • in readFields, if there are a number of entries of a class that is not one of the "predefined" classes, the following exception is thrown:
        java.lang.IllegalArgumentException: Class <not predefined class name> already registered
      • readFields did not set the number of non-predefined classes. Consequently, making a copy of a copy that had entries of non-predefined classes would fail because the second copy would not receive the mapping from id to class and a NullPointerException would be thrown

      Attachments

        1. patch.txt
          9 kB
          Jim Kellerman
        2. patch.txt
          10 kB
          Jim Kellerman

        Issue Links

          Activity

            People

              jimk Jim Kellerman
              jimk Jim Kellerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: