rocketmq
rocketmq copied to clipboard
[ISSUE #8753]ConsumeQueue minOffset did not update when the corresponding CommitLog files were all deleted
Which Issue(s) This PR Fixes
Fixes #8753
Brief Description
Ref: #4568
How Did You Test This Change?
- Set mappedFileSizeCommitLog to 102400.
- Create 3 topics: TopicTest1 TopicTest2 TopicTest3.
- Produce 1000 messages to each topic in sequence.
- Now we may have 6 CommitLog files, use the RocketMQ admin client to delete the first 5 of them.
- 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