apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.31k stars 8.78k forks source link

获取全局锁失败,配置文件中更改配置也不好使 #6970

Open 465722253 opened 4 hours ago

465722253 commented 4 hours ago

org.apache.seata.rm.datasource.exec.LockConflictException: get global lock fail, xid:10.244.1.180:8091:5648078290911593687, lockKeys:tbl_jira:56172;tbl_jira:59390 截屏2024-11-01 16 51 35 截屏2024-11-01 16 52 02

funky-eyes commented 4 hours ago

请通过server日志排查锁被谁持有了,可以尝试通过globaltransactional注解上的lock相关的配置增加重试次数和间隔来调优 Please check the server logs to identify who is holding the lock. You can try adjusting the retry count and interval related to the lock configuration in the @GlobalTransactional annotation to optimize it.

465722253 commented 4 hours ago

截屏2024-11-01 17 07 00 jia'l 加了这个配置还是报错

465722253 commented 4 hours ago

用的是2.0.1的版本 springboot3 jdk17 pgsql hibernate

funky-eyes commented 3 hours ago

请通过server日志排查锁被谁持有了

funky-eyes commented 3 hours ago

实在无法提供这些细节让社区协助的话,你可以换xa模式 If you really can't provide these details for the community to assist, you can change to the xa mode.