You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We find that this issue is similar to #28011, which is fixed by #42488 .
However, this bug still occurs in v7.4.0.
We explain the UPDATE statement and find that it uses point_get instead of IndexLookUp, which may be the root cause.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The original schema is shown below:
The following transactions are executed in order in two sessions of repeatable read.
2. What did you expect to see? (Required)
The last query returns:
while coAttr0_0 should be updated by its own update operation, which set coAttr0_0 as 2.
3. What did you see instead (Required)
When we update a different value in session2, the last query can get correct value, i.e., when we execute the transaction below:
The last query will return :
It seems that some opt when two transactions update a same value may go wrong.
4. What is your TiDB version? (Required)
| Release Version: v6.5.0
Edition: Community
Git Commit Hash: 706c3fa
Git Branch: heads/refs/tags/v6.5.0
UTC Build Time: 2022-12-27 03:50:44
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv |
The text was updated successfully, but these errors were encountered: