This is an automated email from the ASF dual-hosted git repository.

lushiji pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 54bdc0d60b [fix] Change log level to debug when check parameters in 
BatchRead. (#4485)
54bdc0d60b is described below

commit 54bdc0d60b32830b513089167cee67f52f4735eb
Author: 道君 <[email protected]>
AuthorDate: Sun Feb 16 08:07:02 2025 +0800

    [fix] Change log level to debug when check parameters in BatchRead. (#4485)
    
    * Change log level to debug when check parameters in BatchRead.
---
 .../main/java/org/apache/bookkeeper/client/LedgerHandle.java | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
index 6c0c5cc2ab..bf71e75282 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
@@ -956,13 +956,17 @@ public class LedgerHandle implements WriteHandle {
             boolean isRecoveryRead) {
         int nettyMaxFrameSizeBytes = 
clientCtx.getConf().nettyMaxFrameSizeBytes;
         if (maxSize > nettyMaxFrameSizeBytes) {
-            LOG.info(
-                "The max size is greater than nettyMaxFrameSizeBytes, use 
nettyMaxFrameSizeBytes:{} to replace it.",
-                nettyMaxFrameSizeBytes);
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("The max size is greater than 
nettyMaxFrameSizeBytes, "
+                        + "use nettyMaxFrameSizeBytes:{} to replace it.", 
nettyMaxFrameSizeBytes);
+            }
             maxSize = nettyMaxFrameSizeBytes;
         }
         if (maxSize <= 0) {
-            LOG.info("The max size is negative, use nettyMaxFrameSizeBytes:{} 
to replace it.", nettyMaxFrameSizeBytes);
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("The max size is negative, use 
nettyMaxFrameSizeBytes:{} to replace it.",
+                        nettyMaxFrameSizeBytes);
+            }
             maxSize = nettyMaxFrameSizeBytes;
         }
         BatchedReadOp op = new BatchedReadOp(this, clientCtx,

Reply via email to