Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12.3, 0.13.0, 0.14.0
    • Fix Version/s: 0.14.0
    • Component/s: io
    • Labels:
      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];
          ...
        }
      
      1. GenericWritable.patch
        0.5 kB
        Espen Amble Kolstad

        Activity

        Hide
        Espen Amble Kolstad added a comment -

        Patch for trunk

        Show
        Espen Amble Kolstad added a comment - Patch for trunk
        Show
        Hadoop QA added a comment - +1 http://issues.apache.org/jira/secure/attachment/12361477/GenericWritable.patch applied and successfully tested against trunk revision r554811. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/385/testReport/ Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/385/console
        Hide
        Doug Cutting added a comment -

        I just committed this. Thanks, Espen!

        Show
        Doug Cutting added a comment - I just committed this. Thanks, Espen!
        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Hadoop-Nightly #152 (See http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/152/ )

          People

          • Assignee:
            Espen Amble Kolstad
            Reporter:
            Espen Amble Kolstad
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development