adoroszlai commented on code in PR #10536:
URL: https://github.com/apache/ozone/pull/10536#discussion_r3443682839


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/ChunkBuffer.java:
##########
@@ -17,18 +17,30 @@
 
 package org.apache.hadoop.ozone.common;
 
+import com.google.common.annotations.VisibleForTesting;
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.channels.GatheringByteChannel;
 import java.util.List;
 import java.util.Objects;
+import java.util.concurrent.atomic.AtomicBoolean;
 import org.apache.hadoop.hdds.utils.db.CodecBuffer;
 import org.apache.ratis.thirdparty.com.google.protobuf.ByteString;
 import org.apache.ratis.util.UncheckedAutoCloseable;
 
 /** Buffer for a block chunk. */
 public interface ChunkBuffer extends ChunkBufferToByteString, 
UncheckedAutoCloseable {
 
+  /**
+   * When true, {@link #allocate} uses direct ByteBuffers instead of heap 
ByteBuffers.
+   * Set only by {@link BlockOutputStreamWriteBenchmark} to compare allocation 
strategies

Review Comment:
   ```
   
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/ChunkBuffer.java:36:
 warning - Tag @link: reference not found: BlockOutputStreamWriteBenchmark
   ```
   
   
https://github.com/yandrey321/ozone/actions/runs/27780341047/job/82205691733#step:13:2213



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