seata-flowable回滚异常

Blade 未结 1 46
KingL
KingL 剑童 2025-03-27 16:25

一、该问题的重现步骤是什么?

  1. bladex-4.1.0.REKEASE 引入了 flowable 

  2. <dependency>
        <groupId>org.flowable</groupId>
        <artifactId>flowable-spring-boot-starter</artifactId>
        <version>7.0.1</version>
    </dependency>
  3. 集成 seata-2.0.0

  4. <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

1条回答
  • 2025-03-27 18:01

    flowable不支持seata,分布式事务就别把他加进去了

    另外请给我们邮箱:bladejava@qq.com 发一个邮件提供授权公司名,登记为商业账号后方可进行商业版问题答疑。

    0 讨论(0)
代码语言
提交回复