dble icon indicating copy to clipboard operation
dble copied to clipboard

concurrently update a row in global table may cause live-lock

Open actiontech-bot opened this issue 7 years ago • 0 comments

Raised by: helingyun Steps:

  1. concurrently Query:
set autocommit = 0;
update test_global1 set k=k-1 where id = 1;
update test1 set k=k+1 where id = 666;
commit;

  1. connection a updates data-node 1, and wait for data-node 2
  2. connection b updates data-node 2, and wait for data-node 2
  3. transaction timeout, and be rollback

actiontech-bot avatar Aug 25 '17 07:08 actiontech-bot