pjc516113732 opened a new issue, #7068: URL: https://github.com/apache/incubator-seata/issues/7068
<!-- Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy). --> ### Ⅰ. Issue Description store.mode=file store.lock.mode=file store.session.mode=file 时不时会出现LockConflictException: get global lock fail 清楚undo_log没效果,每次都要重启seata ### Ⅱ. Describe what happened seata ``` 2024-12-23 08:44:07.096 INFO --- [ Thread-89027] i.seata.server.coordinator.AbstractCore : Register branch successfully, xid = 10.178.163.76:8091:6810041594698037397, branchId = 6810041594698037398, resourceId = jdbc:mysql://192.168.xx.xxx:3306/srm_sit ,lockKeys = purchase_enquiry_head:1870993513908887554 2024-12-23 08:44:07.972 INFO --- [ ServerHandlerThread_1_49_500] i.s.s.session.AbstractSessionManager : xid:10.178.163.76:8091:6810041594698037397 fail end, transaction:GlobalSession{xid='10.178.163.76:8091:6810041594698037397', transactionId=6810041594698037397, status=RollbackFailed, applicationId='srm-inquiry', transactionServiceGroup='default_tx_group', transactionName='default', timeout=120000, beginTime=1734914647042, applicationData='null', lazyLoadBranch=false, active=false, branchSessions=[BR:6810041594698037398/6810041594698037397], globalSessionLock=io.seata.server.session.GlobalSession$GlobalSessionLock@32af5edf, lifecycleListeners=[io.seata.server.storage.file.session.FileSessionManager@4f7bb2aa]} 2024-12-23 08:44:07.972 ERROR --- [ ServerHandlerThread_1_49_500] io.seata.server.coordinator.DefaultCore : Rollback branch transaction fail and stop retry, xid = 10.178.163.76:8091:6810041594698037397 branchId = 6810041594698037398 后面一直holding 2024-12-23 09:18:34.860 INFO --- [ Thread-92500] io.seata.core.lock.AbstractLocker : Global lock on [purchase_enquiry_head:1870993513908887554] is holding by 6810041594698037398 2024-12-23 09:18:34.866 ERROR --- [ Thread-92500] i.s.c.e.AbstractExceptionHandler : this request cannot acquire global lock, you can let Seata retry by setting config [client.rm.lock.retryPolicyBranchRollbackOnConflict] = false or manually retry by yourself. request: 应用报错 Caused by: io.seata.rm.datasource.exec.LockConflictException: get global lock fail, xid:10.178.163.76:8091:6810041594698048625, lockKeys:purchase_enquiry_head:1870993513908887554 ``` undo_log 表 <img width="1441" alt="image" src="https://github.com/user-attachments/assets/4454bf6b-1454-44fa-8827-be5b09daf13f" /> ### Ⅲ. Describe what you expected to happen ### Ⅳ. How to reproduce it (as minimally and precisely as possible) 1. xxx 2. xxx 3. xxx Minimal yet complete reproducer code (or URL to code): ### Ⅴ. Anything else we need to know? ### Ⅵ. Environment: - JDK version(e.g. `java -version`):1.8 - Seata client/server version: 1.6.1 - Database version:mysql 5.7 - OS(e.g. `uname -a`): - Others: -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
