-
Notifications
You must be signed in to change notification settings - Fork 287
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
owner: fix global checkpointts stopping when it 's not exist changefees #496
Conversation
/run-all-tests |
/run-all-tests |
cdc/changefeed.go
Outdated
if len(c.taskPositions) == 0 { | ||
minCheckpointTs = c.status.CheckpointTs | ||
minCheckpointTs = c.status.ResolvedTs | ||
} else if len(c.taskPositions) < len(c.taskStatus) { | ||
return nil |
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.
Is this better:
- check if
len(c.taskPositions) < len(c.taskStatus)
, do nothing - then check if
len(c.taskPositions) == 0
, updateminCheckpointTs
toc.status.ResolvedTs
If owner has dispatched a table but processor doesn't start replicating it, owner should wait until the processor is ready?
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.
If owner has dispatched a table but processor doesn't start replicating it, owner should wait until the processor is ready?
Yes, the owner should, and we using table lock to make the owner wait until the processor is ready now
/run-all-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #496 +/- ##
===========================================
Coverage 26.2199% 26.2199%
===========================================
Files 61 61
Lines 6373 6373
===========================================
Hits 1671 1671
Misses 4589 4589
Partials 113 113 |
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
What problem does this PR solve?
If the number of changefeed is zero, checkpoint will not be pushing
What is changed and how it works?
Check List
Tests