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

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

Open
actiontech-bot opened this issue Aug 25, 2017 · 0 comments
Open

Comments

@actiontech-bot
Copy link
Member

actiontech-bot commented Aug 25, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants