Why does a row-lock wait in OceanBase MySQL mode return ERROR 4012 instead of ERROR 1205?
I am running OceanBase Database 4.2.5.3 in MySQL mode. Two sessions update the same row. The first session keeps its transaction open, so the second session has to wait for that row lock. I expected the waiting statement to fail with MySQL's lock-wait error, ERROR 1205. It fails with OceanBase's generic timeout, ERROR 4012, instead. This is the table and the transaction that holds the lock. I leave this transaction uncommitted on purpose: CREATE TABLE accounts ( id INT PRIMARY KEY, balance INT NOT NULL ); INSERT INTO accounts VALUES (1, 100); BEGIN; UPDATE accounts SET balance = balance - 10 W
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.