szetszwo commented on issue #1517: HDDS-2169. Avoid buffer copies while 
submitting client requests in Ratis
URL: https://github.com/apache/hadoop/pull/1517#issuecomment-538603606
 
 
   > ...  I tried to run the tests in TestDataValidateWithUnsafeByteOperations 
and i see the following exception being thrown: ...
   
   Thanks @bshashikant.  That is a bug in  ChunkUtils
   ```
    // ChunkUtils.writeData(..)
       int bufferSize = data.capacity();
   ```
   It should call data.remaining() instead of data.capacity().

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to