ddl: optimize temp index worker in highly conflicting case (#61445)#62492
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@tangenta This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, fzzf678 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: tangenta <tangenta@126.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #62492 +/- ##
================================================
Coverage ? 57.7065%
================================================
Files ? 1780
Lines ? 631428
Branches ? 0
================================================
Hits ? 364375
Misses ? 242504
Partials ? 24549
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
/unhold |
|
/retest |
1 similar comment
|
/retest |
|
/retest |
Signed-off-by: tangenta <tangenta@126.com>
|
/retest |
Signed-off-by: tangenta <tangenta@126.com>
This is an automated cherry-pick of #61445
What problem does this PR solve?
Issue Number: close #61433
Problem Summary:
When there are lots of conflicts between DDL internal txn and DML txn, temp index worker can hardly make any progress.
What changed and how does it work?
LockKeysin DDL internal txn from merge index worker.tidb_ddl_temp_index_write: the counter of writing to temp index (single write).tidb_ddl_temp_index_double_write: the counter of writing to temp index (double write).tidb_ddl_temp_index_scan: the counter of scanned temp index value records.tidb_ddl_temp_index_merge: the counter of merged temp index value records.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.