ddl: optimize temp index worker in highly conflicting case (#61445)#62495
ddl: optimize temp index worker in highly conflicting case (#61445)#62495ti-chi-bot wants to merge 1 commit into
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 NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@ti-chi-bot: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
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.