iamgd67 opened a new pull request, #7969:
URL: https://github.com/apache/rocketmq/pull/7969

   <!-- Please make sure the target branch is right. In most case, the target 
branch should be `develop`. -->
   
   
   
   <!-- Please ensure that the related issue has already been created, and 
[link this pull request to that issue using 
keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>)
 to ensure automatic closure. -->
   
   simple and clear change, not creating an issue
   
   ### Brief Description
   
   ```
   log.warn("The consume request count exceeds threshold {}, so do flow 
control, consume request count={}, flowControlTimes={}", 
consumeRequestCache.size(), consumeRequestFlowControlTimes);
   ```
   missing first parameter, so out put is corrupt
   
   ```
   2024-03-26 13:48:53.235 WARN  [15008] [PullMsgThread-test20] 
[o.a.r.c.i.c.DefaultLitePullConsumerImpl#run:903] - The consume request count 
exceeds threshold 101, so do flow control, consume request count=1, 
flowControlTimes={}
   ```
   
   
   <!-- Write a brief description for your pull request to help the maintainer 
understand the reasons behind your changes. -->
   
   ### How Did You Test This Change?
   
   after change 
   ```
   log.warn("The consume request count exceeds threshold {}, so do flow 
control, consume request count={}, flowControlTimes={}",
                                   
(int)Math.ceil((double)defaultLitePullConsumer.getPullThresholdForAll()/defaultLitePullConsumer.getPullBatchSize()),
                                   consumeRequestCache.size(), 
consumeRequestFlowControlTimes);
   ```
   out put is good
   
   ```
   2024-03-26 16:55:00.813 WARN  [29212] [PullMsgThread-test11] 
[o.a.r.c.i.c.DefaultLitePullConsumerImpl#run:904] - The consume request count 
exceeds threshold 100, so do flow control, consume request count=116, 
flowControlTimes=2001
   ```
   
   <!-- In order to ensure the code quality of Apache RocketMQ, we expect every 
pull request to have undergone thorough testing. -->
   


-- 
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: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to