You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Branimir Lambov (JIRA)" <ji...@apache.org> on 2016/06/07 15:45:21 UTC

[jira] [Commented] (CASSANDRA-11913) BufferUnderFlowException in CompressorTest

    [ https://issues.apache.org/jira/browse/CASSANDRA-11913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318714#comment-15318714 ] 

Branimir Lambov commented on CASSANDRA-11913:
---------------------------------------------

Thank for the patch. I would not change the array size to still catch the bug of compressor using the size of the array instead of passed length. Fixing just the {{arrayCopy}} should be enough to sort the problem.

> BufferUnderFlowException in CompressorTest
> ------------------------------------------
>
>                 Key: CASSANDRA-11913
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11913
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>         Environment: Non-x86 environments
>            Reporter: Rei Odaira
>            Assignee: Rei Odaira
>            Priority: Minor
>             Fix For: 2.2.x, 3.0.x, 3.x
>
>         Attachments: 11913-2.2.txt
>
>
> org.apache.cassandra.io.compress.CompressorTest causes java.nio.BufferUnderflowException on environments where FastByteOperations uses PureJavaOperations. The root cause is that CompressorTest.testArrayUncompress() copies data from a ByteBuffer to a byte array beyond the limit of the ByteBuffer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)