1040087877 opened a new issue, #7573:
URL: https://github.com/apache/rocketmq/issues/7573

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   无
   
   ### RocketMQ version
   
   5.0 develop分支
   
   ### JDK Version
   
   _No response_
   
   ### Describe the Bug
   
   org.apache.rocketmq.store.timer.TimerMessageStore#isReject
   
   if (RANDOM.nextInt(1000) > 1000 * (congestNum - 
storeConfig.getTimerCongestNumEachSlot()) / 
(storeConfig.getTimerCongestNumEachSlot() + 0.1)) {
               return true;
   }
           
   这里的逻辑是否取反,return true 表示拒绝,
   
   假设左边随机数固定,右边congestNum 越大 总体值不是越大,这样就拦截不了。
   
   ### Steps to Reproduce
   
   无
   
   ### What Did You Expect to See?
   
   无
   
   ### What Did You See Instead?
   
   无
   
   ### Additional Context
   
   _No response_


-- 
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.apache.org

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

Reply via email to