How to produce “phantom read” in REPEATABLE READ? (MySQL)
The “phantom read” in MySQL on RR isolation level is hidden deep, but still can reproduce it. Here are the steps: create table ab(a int primary key, b int); Tx1: begin; select * from ab; // empty set Tx2: begin; insert into ab values(1,1); commit; Tx1: select * from ab; // empty set, expected phantom … Read more