-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: set context correctly in the setDDLLabelForDiagnosis (#40090) #40131
ddl: set context correctly in the setDDLLabelForDiagnosis (#40090) #40131
Conversation
[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 submitting an approval review. |
/hold high priority for trunk branch |
/unhold |
@CbcWestwolf: The
Use In response to this:
Instructions 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/test-infra repository. |
/test build |
/hold There is something strange that needs to be investigated. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 79d2945
|
/retest |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release-6.5 #40131 +/- ##
================================================
Coverage ? 77.5849%
================================================
Files ? 1083
Lines ? 376252
Branches ? 0
================================================
Hits ? 291915
Misses ? 68997
Partials ? 15340 |
/merge |
@you06: We have migrated to builtin Please use
Instructions 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. |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CbcWestwolf, cfzjywxk, you06, zyguan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #40090
Signed-off-by: you06 you1474600@gmail.com
What problem does this PR solve?
Issue Number: close #40099
Problem Summary:
There is a fix in #36207, which may mistakely skip the init of context when the job context is not initialized in
ddlCtx.setDDLLabelForDiagnosis
.What is changed and how it works?
This PR checks if the context is initialized before setting it, which also avoid the race.
» go test -race ./ddl -run TestAddIndex4 ok github.com/pingcap/tidb/ddl 19.744s
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.