Jyothsna Konisa created CASSANALYTICS-116:
---------------------------------------------
Summary: 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
Reporter: Jyothsna Konisa
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]