smengcl commented on code in PR #6455:
URL: https://github.com/apache/ozone/pull/6455#discussion_r1600950951


##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockOutputStream.java:
##########
@@ -183,9 +185,10 @@ public BlockOutputStream(
     // tell DataNode I will send incremental chunk list
     if (config.getIncrementalChunkList()) {
       this.containerBlockData.addMetadata(INCREMENTAL_CHUNK_LIST_KV);
-      this.lastChunkBuffer =
-          ByteBuffer.allocate(config.getStreamBufferSize());
+      this.lastChunkBuffer = 
DIRECT_BUFFER_POOL.getBuffer(config.getStreamBufferSize());

Review Comment:
   Note: both `DirectBufferPool` methods appears to be thread-safe, that is 
good news and one less problem for HDDS-9844.



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