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

   ### 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
   
   any
   
   ### RocketMQ version
   
   any
   
   ### JDK Version
   
   any
   
   ### Describe the Bug
   
   Releasing lock in Future.whenComplete() may lead to the lock not being 
properly released when using ThreadPoolExecutor with DiscardOldestPolicy.
   
   look this function:
   
   org.apache.rocketmq.proxy.common.ReceiptHandleGroup#computeIfPresent
   
   ### Steps to Reproduce
   
   1. ConsumerProcessorExecutor's queue is full
   2. Submit a new task to ConsumerProcessorExecutor and discard oldest inner 
renew task 
   3. handleData.unlock() can not be reached
   4. handle will never be removed
   
   ### What Did You Expect to See?
   
   unlock  properly
   
   ### What Did You See Instead?
   
   can not release lock 
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to