apache / apache/incubator-seata
AT模式下,二阶段回滚的时候有没有扩展点提供用于自定义回滚
Open
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
**诉求:**
AT模式下,二阶段回滚的时候有没有扩展点提供用于自定义回滚
**问题描述:**
比如:业务1:上传图片,对应sql插入了图片数据,还上传了图片文件;业务二:其他操作。分布式事务就由业务1和2组成。
在AT模式下,业务1进行二阶段回滚操作时,sql的回滚能自动执行。但是上传的图片文件还需要删除,该如何操作?
**分析思路:**
如果业务1,2采用TCC模式我们是可以自定义回滚操作的。
但是还是希望借用AT模式的便利性来处理分布式事务,这图片文件的回滚操作如何进行?
能否在一个分布式事务中在AT模式下,对部分分支事务采用tcc来解决这问题?
Contributor guide
Research direction
Start by reviewing Seata's AT and TCC transaction documentation and the existing rollback extension points. Determine whether an AT transaction can mix in a TCC branch for file cleanup, and document or implement a supported approach for rolling back uploaded files alongside database changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100