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

   ReceiptHandleGroup.put() at lines 179-196, get() at lines 222-236, remove() 
at lines 247-261, and computeIfPresent() at lines 293-318 all call 
HandleData.lock(). When tryAcquire() times out, lock() treats a stale 
lastLockTimeMs as success at lines 124-131, updates the timestamp, and returns 
without acquiring the semaphore. The caller then enters the critical section 
concurrently with the original holder. Its finally block calls unlock(), which 
releases the semaphore at lines 141-148 even though this recovery path never 
acquired it; multiple waiters can therefore inflate the permit count and allow 
later receipt-handle updates or removals to run concurrently.


-- 
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