3424672656 opened a new issue, #8254: URL: https://github.com/apache/rocketmq/issues/8254
### 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 centos ### RocketMQ version develop ### JDK Version 11 ### Describe the Bug ![image](https://github.com/apache/rocketmq/assets/125714719/ebb0a1d5-b6d9-414a-b62b-5e78a4748c9a) ![image](https://github.com/apache/rocketmq/assets/125714719/25822b89-d075-4484-a1e4-0cb0732a4817) In DefaultMQProducer.class, when the semaphore size is reassigned, part of the semaphore may have been acquired, resulting in an actual semaphore greater than the semaphore measured value ![image](https://github.com/apache/rocketmq/assets/125714719/681b9cb3-804b-4d55-ac1c-2148a74a4bb8) ![image](https://github.com/apache/rocketmq/assets/125714719/da9cce2d-b8f0-4153-99a8-deb64b561b1d) ### Steps to Reproduce null ### What Did You Expect to See? Correct semaphore meter value ### What Did You See Instead? Incorrect semaphore meter value ### 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