You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "iAmClever (via GitHub)" <gi...@apache.org> on 2024/08/22 09:13:48 UTC
Re: [I] TCC模式下,开启它的useTCCFence功能,mysql事务隔离级别是RR,如果prepare阶段发生悬挂 && rollback阶段也发生悬挂,会出现异常【Deadlock found when trying to get lock; try restarting transaction】 [incubator-seata]
iAmClever commented on issue #6679:
URL: https://github.com/apache/incubator-seata/issues/6679#issuecomment-2304172369
**将隔离级别调成RR:**

执行第一条rollback线程 到select ... for update 这一行:

此时mysql的锁记录信息如下:

执行第二条rollback线程 到select ... for update 这一行:

此时mysql的锁记录信息如下:

执行结果,会卡住超时后报死锁异常:

**将隔离级别调成RC:**

执行第一条rollback线程 到select ... for update 这一行:

此时mysql的锁记录信息如下:

执行第二条rollback线程 到select ... for update 这一行:

此时mysql的锁记录信息如下:

执行结果,报主键冲突:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org