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

Jyothsna Konisa updated CASSANALYTICS-116:
------------------------------------------
          Fix Version/s: 0.2
    Source Control Link: 
https://github.com/apache/cassandra-analytics/commit/018250aff4b74a8296a66285ad66aa591b52afea
             Resolution: Fixed
                 Status: Resolved  (was: Ready to Commit)

> Fix ByteBuffer flip() in StreamBuffer.copyBytes() causing data corruption
> -------------------------------------------------------------------------
>
>                 Key: CASSANALYTICS-116
>                 URL: https://issues.apache.org/jira/browse/CASSANALYTICS-116
>             Project: Apache Cassandra Analytics
>          Issue Type: New Feature
>          Components: CDC
>            Reporter: Jyothsna Konisa
>            Assignee: Jyothsna Konisa
>            Priority: Normal
>             Fix For: 0.2
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> CdcRandomAccessReader.rebuffer() fails with assertion error when filling 
> buffers that require multiple chunks:
>   assert buffer.remaining() == 0;  // FAILS - buffer still has remaining 
> capacity
>  The copyBytes(int sourceOffset, ByteBuffer destination, int length) method 
> in both StreamBuffer.ByteArrayWrapper and VertxStreamBuffer calls 
> destination.flip() after writing data, which is affecting multiple chunk 
> reading into the buffer as the offset gets flipped after each copy.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to