ChenSammi commented on code in PR #7233:
URL: https://github.com/apache/ozone/pull/7233#discussion_r1776611816


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java:
##########
@@ -1408,4 +1408,18 @@ private String extractPartsCount(String eTag) {
     }
     return null;
   }
+
+  private int getIOBufferSize(long fileLength) {
+    if (bufferSize == 0) {
+      // this is mainly for unit tests as init() will not be called in the 
unit tests
+      LOG.warn("buffer size is set to {}", IOUtils.DEFAULT_BUFFER_SIZE);

Review Comment:
   It's intentionally to use WARN level log, for it should not appear in the 
production environment.  If there is this warn log in the production 
environment, then something is going wrong. 



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