apache / apache/incubator-seata-samples

springboot+dubbo+seata0.8.1 生产者消费者分开部署产生的问题

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

Description

环境:springboot+dubbo+seata0.8.1
模块1:api模块 @TwoPhaseBusinessAction所在
模块2:consumer @GlobalTransactional所在
模块3:provider 接口服务的实现
现象:Begin new global transaction [192.168.3.167:8091:2023542992]
[192.168.3.167:8091:2023542992] commit status:Committed
完全分开实现的seata的tcc模式,全局事务刚开始就提交了,并且provider中提供的commit方法并没有执行。consumer中的try接口中获取的BusinessActionContext参数获取为null。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the three-module deployment described: api with @TwoPhaseBusinessAction, consumer with @GlobalTransactional, and provider with the service implementation. Trace how the global transaction begins and commits, why the provider commit method is skipped, and why BusinessActionContext is null in the consumer try method. Done means the transaction behavior and context propagation issue are explained and a concrete fix is identified.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.