一、该问题的重现步骤是什么?
bladex-4.1.0.REKEASE 引入了 flowable
<dependency> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-starter</artifactId> <version>7.0.1</version> </dependency>
并集成 seata-2.0.0
<dependency> <groupId>org.springblade</groupId> <artifactId>blade-starter-transaction</artifactId> </dependency>
二、你期待的结果是什么?实际看到的又是什么?
事务异常时 bladex其他的业务 发生异常时事务回滚正常,但是flowable回滚异常,报错:表有外键关联。回滚失败;希望如何配置或怎么调整代码使得在不破坏flowable的外键关联的情况下 可以事务回滚。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
商业版 4.1.0.REKEASE 生产:Linux,本地:windows10
四、请提供详细的错误堆栈信息,这很重要。
2025-03-27 15:34:14.789 ERROR 4344 --- [_RMROLE_1_16_24] i.seata.rm.datasource.DataSourceManager : branchRollback failed. branchType:[AT], xid:[192.168.14.240:8091:8881731781438513153], branchId:[8881731781438513156], resourceId:[jdbc:postgresql://10.0.1.1:3306/testdb], applicationData:[{"autoCommit":false}]. reason:[Branch session rollback failed and try again later xid = 192.168.14.240:8091:8881731781438513153 branchId = 8881731781438513156 ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_parent" on table "act_ru_execution"
Detail: Key (id_)=(bb0f3fa7-0acc-11f0-b5d5-c82158125a43) is still referenced from table "act_ru_execution".]
2025-03-27 15:34:14.789 INFO 4344 --- [_RMROLE_1_16_24] io.seata.rm.AbstractRMHandler : Branch Rollbacked result: PhaseTwo_RollbackFailed_Retryable
五、若有更多详细信息,请在下面提供。
开发环境:本地windows10 idea nacos seata 远程 数据库、redis
扫一扫访问 Blade技术社区 移动端