-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
store: avoid sessions of GC being affected by global variables #24975
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
As @MyonKeminta said we may need a recover test case coupled with GC? |
@MyonKeminta do we have a test framework to add this case? |
This reverts commit 0fcd9c6.
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
PTAL @lysu @MyonKeminta |
[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. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0a7d3b0
|
/run-unit-test |
/merge |
/merge |
1 similar comment
/merge |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.1 in PR #25449 |
should this PR cherry-pick to 5.0? |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #25609 |
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What problem does this PR solve?
Issue Number: close #24976
Problem Summary:
The sessions of GC will be affected by global variables, if the user
set global autocommit = 0
, thensaveValueToSysTable
will not commit the transaction automatically, which will make the safe point could not go forward.What is changed and how it works?
Proposal: xxx
What's Changed:
se.GetSessionVars().CommonGlobalLoaded = true
for the sessions of GC.How it Works:
Related changes
Check List
Tests
set global autocommit = 0
show status
orselect variable_value from mysql.tidb where variable_name = 'tikv_gc_safe_point';
to check the safe point go forward or not.Release note