jyothsnakonisa commented on PR #165:
URL: 
https://github.com/apache/cassandra-analytics/pull/165#issuecomment-3866326196

   
`analytics-sidecar-vertx-client/src/main/java/org/apache/cassandra/sidecar/client/VertxStreamBuffer`
 -> `org.apache.cassandra.sidecar.client.StreamConsumerWriteStream` ->  
`org.apache.cassandra.sidecar.client.VertxHttpClient#stream` method. 
   
   Flip inside 
`analytics-sidecar-vertx-client/src/main/java/org/apache/cassandra/sidecar/client/VertxStreamBuffer.java#copyBytes`
 method causing data curruption during writing of multi chunk data, as the flip 
sets position to 0 and data gets overwritten causing Stream api failures. Hence 
flip should be removed from copyBytes method.
   
   CdcRandomAccessReader.CDCRebuffer#rebuffer method should flip the buffer for 
the data to be readily read. Hence adding buffer.flip in that method for 
correctness


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to