[
https://issues.apache.org/jira/browse/CASSANALYTICS-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jyothsna Konisa updated CASSANALYTICS-116:
------------------------------------------
Status: Ready to Commit (was: Review In Progress)
> 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
> 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]