rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[ISSUE #8753]ConsumeQueue minOffset did not update when the corresponding CommitLog files were all deleted

Open HScarb opened this issue 1 year ago • 0 comments

Which Issue(s) This PR Fixes

Fixes #8753

Brief Description

Ref: #4568

How Did You Test This Change?

  1. Set mappedFileSizeCommitLog to 102400.
  2. Create 3 topics: TopicTest1 TopicTest2 TopicTest3.
  3. Produce 1000 messages to each topic in sequence.
  4. Now we may have 6 CommitLog files, use the RocketMQ admin client to delete the first 5 of them.
  5. Use TopicStatus admin command to retrieve TopicTest1's status.

The result is correct:

#Broker Name                      #QID  #Min Offset           #Max Offset             #Last Updated
broker-a                          0     250                   250                     
broker-a                          1     250                   250                     
broker-a                          2     250                   250                     
broker-a                          3     250                   250                     

HScarb avatar Sep 26 '24 03:09 HScarb