apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.25k stars 8.77k forks source link

nacos作为注册中心时回滚失败 #6758

Closed zsp419 closed 1 month ago

zsp419 commented 1 month ago

Ⅰ. Issue Description

Ⅱ. Describe what happened

seata版本1.6.1,注册中心是nacos,nacos版本:2.4.0 我有两个服务A和B,A和B都成功在seata-server注册,A调用B之后,A侧报错,A正常回滚,B没有回滚。 奇怪的是:之前我用默认的file模式测试时,A和B都能够正常回滚,请问我应该如何去排查问题

seata-server注册成功日志: image

funky-eyes commented 1 month ago

nacos只是用来做服务发现,回滚失败跟nacos基本上没什么关系,除非你的B节点没有注册到A节点所连接的tc上 Nacos is only used for service discovery. Rollback failure has basically nothing to do with nacos, unless your B node is not registered on the tc connected by A node

funky-eyes commented 1 month ago

参考官网faq不回滚的排查方法,排查下你为什么没有回滚,你截图的日志根本没有rm注册的日志 Refer to the troubleshooting method of faq not rolling back on the official website to check why you didn't roll back. The log you screenshot has no log registered by rm at all.

zsp419 commented 1 month ago

image 截错了,这里是有rm注册日志的

zsp419 commented 1 month ago

好了,多谢