apache / apache/incubator-seata-samples
关于dubbo示例执行中发现没有回滚,同时发现undo_log没有数据添加删除的问题及解决
Open
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
此错误是我在dubbo那个demo下测试出来的,其他的没有使用过,此测试seata版本为0.7.1
之前按照下载的demo进行测试,发现抛异常后,事务并没有回滚,后续通过源码调试发现可能是demo中少加入了一个包导致undo数据并没有存入undo_log表中,解决方法是添加以下包:
com.fasterxml.jackson.core
jackson-databind
2.8.6
加入之后再执行,如果事务执行成功,则undo_log会保存信息进去(数据过会会自动删除),如果事务回滚,则事务表及undo_log表均不会有数据变化
Contributor guide
Research direction
The report concerns the Dubbo demo on Seata 0.7.1; start by checking that demo's dependency configuration and reproducing the failed transaction. Verify the reported Jackson databind dependency, then confirm that rollback leaves both the business tables and undo_log unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100