-
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
query result is incorrect when execute prepared statement in RC isolation with plan cache enabled #34447
Comments
@zyguan @vivid392845427 |
If you need any help from the optimizer(plan-cache) side, please contact me or @Reminiscent . |
I guess it's caused by we using the wrong |
Related to #21498 . here both schema versions are staled, and then the cached plan gets used unexpectedly. |
@you06 @cfzjywxk We try to resolve the issue by setting
|
#22381 only solve the issue in RR mode. And this issue contains a more complex case that it prepares the plan before changing the isolation level.
We may check whether the schema is stale for plans which use When rebuilding the plan, use the latest schema for statements that use |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The test case will pass
3. What did you see instead (Required)
Test test case failed
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: