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
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table: create table if not exists txn0 (id int not null primary key, val text);
create tiflash replica and wait for the replica become available: alter table txn0 set tiflash replica 1;
in the first terminal, type the following sql: set @@session.tidb_isolation_read_engines = "tiflash"; begin pessimistic; select val from txn0 where id = 25 for update;
in the second terminal, type the following sql: insert into txn0 (id, val) values (25, '5');
2. What did you expect to see? (Required)
The insert statement will get stuck.
3. What did you see instead (Required)
The insert statement succeed.
4. Affected version (Required)
v4.0.0,v3.1.0
5. Root Cause Analysis
The text was updated successfully, but these errors were encountered:
For 4.0 GA we added warning in TiFlash doc for not to use it in select for update since this scenarios is not thoroughly tested and other bug exists. This case seems rare, at least non of current users use like this according to my knowledge. If this cannot be fixed by 4.0.2, we will confirm docs include sufficient warning message for it.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table:
create table if not exists txn0 (id int not null primary key, val text);
create tiflash replica and wait for the replica become available:
alter table txn0 set tiflash replica 1;
in the first terminal, type the following sql:
set @@session.tidb_isolation_read_engines = "tiflash";
begin pessimistic;
select val from txn0 where id = 25 for update;
in the second terminal, type the following sql:
insert into txn0 (id, val) values (25, '5');
2. What did you expect to see? (Required)
The insert statement will get stuck.
3. What did you see instead (Required)
The insert statement succeed.
4. Affected version (Required)
v4.0.0,v3.1.0
5. Root Cause Analysis
The text was updated successfully, but these errors were encountered: