planner, executor: add stale read compatibility for temporary table (#25206)#25786
planner, executor: add stale read compatibility for temporary table (#25206)#25786ti-srebot wants to merge 2 commits into
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
@ti-srebot: This cherry pick PR is for a release branch and has not yet been approved by release team. To merge this cherry pick, it must first be approved by the collaborators. AFTER it has been approved by collaborators, please ping the release team in a comment to request a cherry pick review. 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/test-infra repository. |
|
/run-all-tests |
|
@lcwangchao please accept the invitation then you can push to the cherry-pick pull requests. |
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
@ti-srebot: PR needs rebase. 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/test-infra repository. |
|
@lcwangchao Please resolve conflicts, rest looks good to me |
|
Already merged in another pr: #25724 |
cherry-pick #25206 to release-5.1
You can switch your code base to this Pull Request by using git-extras:
# In tidb repo: git pr https://github.com/pingcap/tidb/pull/25786After apply modifications, you can push your change to this PR via:
What problem does this PR solve?
Temporary table should not perform stale read
What is changed and how it works?
Add member variable
ExplicitStalenessto builder to mark if this query statement should use stale read explicitly. If the txn is staleness or query is marked staleness, temporary table read should be fail.Related changes
N/A
Check List
Tests
Side effects
N/A
Release note