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

Bug in readFields of GenericWritable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.12.3, 0.13.0, 0.14.0
    • 0.14.0
    • io
    • None

    Description

      When getTypes() returns more than 127 entries, read of classes with index > 127 will fail.

        public void readFields(DataInput in) throws IOException {
          type = in.readByte();
          Class clazz = getTypes()[type];
          ...
        }
      
        public void readFields(DataInput in) throws IOException {
          type = in.readByte();
          Class clazz = getTypes()[type & 0xff];
          ...
        }
      

      Attachments

        1. GenericWritable.patch
          0.5 kB
          Espen Amble Kolstad

        Activity

          People

            kolstae Espen Amble Kolstad
            kolstae Espen Amble Kolstad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: