apache / apache/incubator-seata

seata saga模式当客户端执行事务时突然挂掉,不能恢复的问题

Open
#5,170 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

当客户端执行分布式事务时,客户端突然挂掉后,seata_state_machine_inst表里的记录的status=RU状态,从而客户端再启动后,通过实例id无法重新执行!
试图使用 inst=stateMachineEngine.forward(instancdID,null) 时提示:
StateMachineInstance [id:192.168.137.199:8091:36367749257258317] is running, operation[forward] denied

请问如何解决?

Contributor guide

Open the contributing guide

Research direction

Start by examining the seata_state_machine_inst record for status=RU and the StateMachineEngine.forward(instanceID, null) call described in the report. Reproduce the client-stop and restart sequence, then verify what behavior should allow the instance to recover instead of returning the “is running” denial.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.