-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #7480] Fix the offset in the timerCheckPoint will not be corrected when the commitlog and consumeQueue are truncated #7488
Conversation
…commitlog and consumeQueue are truncated
Codecov Report
@@ Coverage Diff @@
## develop #7488 +/- ##
=============================================
+ Coverage 42.93% 42.98% +0.04%
- Complexity 9660 9677 +17
=============================================
Files 1161 1161
Lines 83930 83959 +29
Branches 10898 10901 +3
=============================================
+ Hits 36038 36087 +49
+ Misses 43410 43399 -11
+ Partials 4482 4473 -9
... and 29 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ConsumeQueueInterface cq = this.messageStore.getConsumeQueue(TIMER_TOPIC, 0); | ||
|
||
// Correction based consume queue | ||
if (cq != null && currQueueOffset < cq.getMinOffsetInQueue()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currQueueOffset < cq.getMinOffsetInQueue() 这个情况什么时候出现,应该比较少吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主要是commitlog和cq数据被截断的时候,但timer这里是不会修正的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Which Issue(s) This PR Fixes
Fixes #7480
Brief Description
Fix the offset in the timerCheckPoint will not be corrected when the commitlog and consumeQueue are truncated
How Did You Test This Change?