-
Notifications
You must be signed in to change notification settings - Fork 6k
ddl notifier: use pessimistic txn and fix updating memory state too early (#59157) #59330
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 notifier: use pessimistic txn and fix updating memory state too early (#59157) #59330
Conversation
Signed-off-by: ti-chi-bot <[email protected]>
@lance6716 This PR has conflicts, I have hold it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #59330 +/- ##
================================================
Coverage ? 57.3967%
================================================
Files ? 1769
Lines ? 627591
Branches ? 0
================================================
Hits ? 360217
Misses ? 242886
Partials ? 24488
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -969,6 +969,7 @@ Limit_7 256.00 <actRows> root NULL NULL offset:0, count:100000 <memory> <disk> | |||
└─TableFullScan_9 256.00 <actRows> cop[tikv] table:pt NULL keep order:false <memory> <disk> | |||
explain analyze select * from pt where val = 125 limit 100; # expected distsql concurrency 15 | |||
id estRows actRows task access object execution info operator info memory disk | |||
<<<<<<< HEAD |
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.
Please resolve this conflict.
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, Rustin170506 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 |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
/unhold |
This is an automated cherry-pick of #59157
What problem does this PR solve?
Issue Number: close #59055
Problem Summary:
What changed and how does it work?
in pessimistic txn, errors can be found earlier, such as when execute the SQL. So handler can see the error and process it. Otherwise the error is reported when COMMIT, and in current handler interface it can't be proccessed
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.