Skip to content

Commit

Permalink
[fix] Change log level to debug when check parameters in BatchRead. (#…
Browse files Browse the repository at this point in the history
…4485)

* Change log level to debug when check parameters in BatchRead.
  • Loading branch information
dao-jun authored Feb 16, 2025
1 parent 07de650 commit 54bdc0d
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,13 +956,17 @@ private CompletableFuture<LedgerEntries> batchReadEntriesInternalAsync(long star
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,
Expand Down

0 comments on commit 54bdc0d

Please sign in to comment.