Skip to content
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

txn: the tidb_low_resolution variable is used on select for update statement #54684

Closed
cfzjywxk opened this issue Jul 17, 2024 · 0 comments · Fixed by #54738
Closed

txn: the tidb_low_resolution variable is used on select for update statement #54684

cfzjywxk opened this issue Jul 17, 2024 · 0 comments · Fixed by #54738
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/moderate sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@cfzjywxk
Copy link
Contributor

cfzjywxk commented Jul 17, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int key);
set tidb_low_resolution_tso = 'ON';
begin;
select * from t where a = 1 for update; // or select * from t for update

2. What did you expect to see? (Required)

The select for update should report an error that when tidb_low_resolution_tso is set, the statement could not be executed.

3. What did you see instead (Required)

The select for update statement executes successfully.

4. What is your TiDB version? (Required)

Nightly with ca7ba14da87abd060922b32c893b121c4c3d6373 commit hash

@cfzjywxk cfzjywxk added type/bug The issue is confirmed as a bug. sig/transaction SIG:Transaction severity/moderate affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. labels Jul 17, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in f838cc8 Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/moderate sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
1 participant