swamirishi opened a new pull request, #9549:
URL: https://github.com/apache/ozone/pull/9549

   ## What changes were proposed in this pull request?
   As per rocksdb DirectSlices are supposed to expose the direct buffers to 
interact with rocksdb. The only problem with directSlices when working with 
external byte buffers it doesn't understand offset and limit of the ByteBuffer. 
Hence to make it safe to work just creating a constructor for 
ManagedDirectSlice fixing the offset and length of the underlying directSlice 
instance should be good. The current implementation doesn't make it safe to 
reuse the direct slice multiple times since rocksdb doesn't allow rollbacks of 
offset in case we want to use a different offset and limit with the same byte 
buffer.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-14237
   
   ## How was this patch tested?
   Update existing unit tests and removed irrelevant ones


-- 
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