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

Ariel Weisberg updated CASSANDRA-9276:
--------------------------------------
    Description: 
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/streaming/compress/CompressedStreamReader.java#L85
{noformat}
assert in.getBytesRead() < totalSize;
{noformat}
My guess is that total size is the compressed size, not the uncompressed size. 
Remove the assertion and the test passes.

  was:
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/streaming/compress/CompressedStreamReader.java#L85
{noformat}
assert in.getBytesRead() < totalSize;
{noformat]
My guess is that total size is the compressed size, not the uncompressed size. 
Remove the assertion and the test passes.


> StreamingTransferTest fails under test-compression due to bad assertion
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-9276
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9276
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Ariel Weisberg
>            Assignee: Ariel Weisberg
>             Fix For: 3.x
>
>
> https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/streaming/compress/CompressedStreamReader.java#L85
> {noformat}
> assert in.getBytesRead() < totalSize;
> {noformat}
> My guess is that total size is the compressed size, not the uncompressed 
> size. Remove the assertion and the test passes.



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

Reply via email to