hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5100) RCFile::sync(long) missing 1 byte in System.arraycopy()
Date Thu, 22 Aug 2013 18:45:54 GMT

     [ https://issues.apache.org/jira/browse/HIVE-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gopal V updated HIVE-5100:
--------------------------

    Attachment: HIVE-5100-001.patch

Fix from the bug report, with an associated test-case.

Before fix, the new test-case will error out with

[junit] Sync at offset 263 skipped sync block at location 17655 (returned 35274 instead)

The test fails because sync(264) == 17655, but sync(263) == 35274.


                
>  RCFile::sync(long)  missing 1 byte in System.arraycopy()
> ---------------------------------------------------------
>
>                 Key: HIVE-5100
>                 URL: https://issues.apache.org/jira/browse/HIVE-5100
>             Project: Hive
>          Issue Type: Bug
>            Reporter: tagus wang
>            Assignee: Gopal V
>         Attachments: HIVE-5100-001.patch
>
>
> this has a bug in this:
> System.arraycopy(buffer, buffer.length - prefix - 1, buffer, 0, prefix);
> it should be 
> System.arraycopy(buffer, buffer.length - prefix, buffer, 0, prefix);
> it is missing 1 byte at the end.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message