ddl: fix the partial-count collection for ddl reorg encountering errors halfway#34165
ddl: fix the partial-count collection for ddl reorg encountering errors halfway#34165ti-chi-bot merged 4 commits intopingcap:masterfrom
Conversation
Signed-off-by: AilinKid <314806019@qq.com>
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/41b6f375ac6e197ce5b1eec0c7aef5dc7d1093ef |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: ee412bf |
TiDB MergeCI notify
|
…rs halfway (pingcap#34165) ref pingcap#32306, close pingcap#34164
Signed-off-by: AilinKid 314806019@qq.com
What problem does this PR solve?
Issue Number: close #34164 ref #32306
Problem Summary:
What is changed and how it works?
We need to record the partial count and warning count down at breakpoint.
This breakpoint maybe caused by txn fail caused by some write conflict, network, and so on.
Nevertheless, we still need to collect these partial count down before we return the error in this ddl round.
Because, in next round of ddl, it will start from a brand new startKey which is persisted at the last ddl round.
For cancel type, we don't care about the counts like we don't even care about the job. We can ignore it.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.