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

   ### 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
   
   .
   
   ### JDK Version
   
   .
   
   ### Describe the Bug
   
   We previously implemented an LMQ counting mechanism and have now discovered 
an unexpected counter underflow issue in RocksDBConsumeQueueOffsetTable.
   
   ### Steps to Reproduce
   
   When specific get* operation is called for a non-existent LMQ topic, a 
sentinel value -1L is placed into topicQueueMaxCqOffset without incrementing 
lmqCounter. However, if this topic is later deleted, removeHeapMaxCqOffset 
unconditionally decrements lmqCounter, causing the counter to underflow.
   
   ### What Did You Expect to See?
   
   lmqCounter should not be decremented for entries that were never actually 
counted.
   
   ### What Did You See Instead?
   
   .
   
   ### Additional Context
   
   .


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