apache / apache/incubator-seata-samples

springcloud+mybatis提示说分支事务回滚成功,日志也有记录,但是数据没有回滚,还是修改了?

Open
#233 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

]io.seata.server.coordinator.DefaultCore.doGlobalRollback:309 -Successfully rollbacked branch BR:2021475760/2021475759
有设置主数据源,不过设了主数据源启动的时候会报循环依赖的错误,于是我在yml文件把datasource的initialize改成了false,然后就没有报错了,但是数据没有发生回滚,会是我设置成false引起的么? 但是不设置这个在启动项目的时候就会报循环依赖的错误!

Contributor guide

Open the contributing guide

Research direction

Reproduce the Spring Cloud and MyBatis transaction scenario described in the issue, including the main data source and datasource.initialize=false. Compare the startup behavior and rollback result with initialization enabled, then verify whether the Seata log's successful branch rollback matches the database state. Done means identifying whether the setting prevents the transaction from rolling back and documenting the confirmed configuration or failure cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.