hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1311) Bug in BytesWritable.set(byte[] newData, int offset, int length)
Date Wed, 30 May 2007 19:48:15 GMT

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

Hadoop QA commented on HADOOP-1311:
-----------------------------------

+1

http://issues.apache.org/jira/secure/attachment/12358569/bytesWritable.patch applied and successfully
tested against trunk revision r542595.

Test results:   http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/218/testReport/
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/218/console

> Bug in BytesWritable.set(byte[] newData, int offset, int length) 
> -----------------------------------------------------------------
>
>                 Key: HADOOP-1311
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1311
>             Project: Hadoop
>          Issue Type: Bug
>          Components: io
>         Environment: N/A
>            Reporter: Srikanth Kakani
>         Attachments: bytesWritable.patch
>
>
> Current implementation:
>   public void set(byte[] newData, int offset, int length) {
>     setSize(0);
>     setSize(length);
>     System.arraycopy(newData, 0, bytes, 0, size);
>   }
> Correct implementation:
>   public void set(byte[] newData, int offset, int length) {
>     setSize(0);
>     setSize(length);
>     System.arraycopy(newData, offset, bytes, 0, size);
>   }
> please fix.

-- 
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