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