hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1584) Bug in readFields of GenericWritable
Date Thu, 12 Jul 2007 11:42:08 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512055
] 

Hudson commented on HADOOP-1584:
--------------------------------

Integrated in Hadoop-Nightly #152 (See [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/152/])

> Bug in readFields of GenericWritable
> ------------------------------------
>
>                 Key: HADOOP-1584
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1584
>             Project: Hadoop
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.12.3, 0.13.0, 0.14.0
>            Reporter: Espen Amble Kolstad
>            Assignee: Espen Amble Kolstad
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: GenericWritable.patch
>
>
> When getTypes() returns more than 127 entries, read of classes with index > 127 will
fail.
> {code}
>   public void readFields(DataInput in) throws IOException {
>     type = in.readByte();
>     Class clazz = getTypes()[type];
>     ...
>   }
> {code}
> {code}
>   public void readFields(DataInput in) throws IOException {
>     type = in.readByte();
>     Class clazz = getTypes()[type & 0xff];
>     ...
>   }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message