-
Notifications
You must be signed in to change notification settings - Fork 282
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
sorter: Unified Sorter clean up stale temporary files #1663
sorter: Unified Sorter clean up stale temporary files #1663
Conversation
/run-all-tests |
4 similar comments
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
2 similar comments
/run-all-tests |
/run-all-tests |
/run-all-tests |
4 similar comments
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
@@ -165,13 +214,20 @@ func (r *fileBackEndReader) readNext() (*model.PolymorphicEvent, error) { | |||
if err != nil { | |||
if err == io.EOF { | |||
r.isEOF = true | |||
// verifies that the file has not been truncated unexpectedly. |
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.
Does the truncate here only happens by accident, not by cdc itself
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.
CDC will truncate a file once its content is no longer needed and the file is going to be recycled. Normally a file in use is not truncated. This piece of code here verifies against accidental truncation either by CDC bug or by user misoperations.
…ix/ticdc into zixiong-unified-sort-clean-up-stale
/run-all-tests |
/run-all-tests |
/run-all-tests |
/lgtm |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 932569f
|
/merge |
1 similar comment
/merge |
Codecov Report
@@ Coverage Diff @@
## master #1663 +/- ##
================================================
- Coverage 54.0050% 53.9649% -0.0401%
================================================
Files 154 155 +1
Lines 16317 16444 +127
================================================
+ Hits 8812 8874 +62
- Misses 6591 6630 +39
- Partials 914 940 +26 |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #1741. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #1742. |
What problem does this PR solve?
What is changed and how it works?
cdc server
instances from sharing the samesort-dir
.Check List
Tests
Code changes
Side effects
Related changes
Release note