peterxcli commented on code in PR #8618:
URL: https://github.com/apache/ozone/pull/8618#discussion_r2144522366


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/Archiver.java:
##########
@@ -37,10 +37,14 @@
 import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
 import org.apache.commons.io.IOUtils;
 import org.apache.hadoop.hdds.HddsUtils;
+import org.apache.hadoop.ozone.OzoneConsts;
 
 /** Create and extract archives. */
 public final class Archiver {
 
+  static final int MIN_BUFFER_SIZE = 8 * (int) OzoneConsts.KB; // same as 
IOUtils.DEFAULT_BUFFER_SIZE
+  static final int MAX_BUFFER_SIZE = (int) OzoneConsts.MB;

Review Comment:
   Do you plan to make this configurable? though 1MB is a good max.
   
   ```
       <property>
         <name>ozone.archiver.max.buffer.size</name>
         <value>1048576</value> <!-- 1MB -->
       </property>
   ```



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