I am using MySQL 8 in my windows machine. trying to see READ COMMITTED isolation level .
innodb_lock_wait_timeout = 5;
innodb_rollback_on_timeout =1;
T1: start transaction;
update todo set title='RC' where id=1;
T2;
start transaction;
set session transaction isolation level read committed;
select title from todo where id=1;
got output
As per my understanding , T1 has write lock for id=1 and T2 should not get output. T2 should get lock timeout exception.
Why T2 is not getting lock timeout & getting committed result ?
How to get lock timeout ?