codingapi / codingapi/tx-lcn

事务被回滚

Open
#405 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4.2k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

我现在有一个tx-manager(a)在测试环境上,一个服务b一个服务c,b通过feign调用c,正常情况下没问题。有一次同事不小心在本地调试服务c的时候把c1注册到了tx-manager上,这时候tx-manger能看见有两个c的服务实例,同事的c1服务用的的数据库是一个本地数据库而非测试数据库,而且c1并不能被网关或者其它服务访问到,也没有注册到eruke中,但是这时候却出了一个很奇怪的问题,正常的测试环境上的b调用c的调用都被回滚了,通过c的log能够清楚的看到update xxx = 3执行成功,但是实际情况是数据库的值马上又被变回去了,服务b和c都没有任何异常却出现了回滚,这时候把同事的本地服务c关掉一切又恢复正常了。

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names no source files, tests, or entry points. Start by reproducing the topology with tx-manager, services b and c, and an extra local c1 instance, then trace transaction registration and rollback decisions. Done means the cause of the unexpected rollback is identified and a clearly scoped fix or reproduction result is recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.