apache / apache/incubator-seata-samples
springcloud-jpa-seata rollback didn't work
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
springcloud-jpa-seata 1.0.0-SNAPSHOT
seata-server 0.5.2
mysql 5.7.24
1 http://127.0.0.1:8084/purchase/rollback 库存表storage_tbl依然会减1,其他表能正常回滚
2 http://127.0.0.1:8084/purchase/commit 断点到AccountService 服务
accountDAO.save(account); 后面休眠一段时间
try {
Thread.sleep(100000);
} catch (InterruptedException e) {
e.printStackTrace();
};这时order_tbl正常回滚,storage_tbl和account_tbl依然会减。
undo_log 调试过程一直没有日志记录,分布式事务没有失效
Contributor guide
Research direction
Reproduce the problem with the listed Seata, MySQL, and sample versions by running /purchase/rollback and /purchase/commit. Start at the purchase endpoints and AccountService around accountDAO.save(account), then inspect the rollback behavior for storage_tbl, order_tbl, account_tbl, and undo_log; done means the reported transaction rollback behavior is explained and corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mysql, spring
- Domain
- databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100