seata XA模式下Mysql版本多数据源差异资源悬挂问题

ygya80vv  于 22天前  发布在  Mysql
关注(0)|答案(1)|浏览(20)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

XA模式下Mysql版本差异资源悬挂问题,xa recover,数据库中是存在事务的,但是分支提交报错:XAER_NOTA:Unkown Xid,
怀疑是接口在链接没断开的情况下,使用了其他链接来提交事务,导致的问题

Ⅱ. Describe what happened

用例:
一个服务T,存在3个Controller,每个Controller一个接口,分别为A B C
在T中有一个接口,分别调用A,A接口调用B,B接口调用C

表现差异
Mysql 8.0.31
使用同一个数据源,事务正常【OK】
每个接口分别有独有的数据源,事务正常【OK】
Mysql8.0.17
使用同一个数据源,事务正常【OK】
每个接口分别有独有的数据源,事务异常【X】

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

无论是分支提交/回滚报的错都是:
XAER_NOTA:Unkown Xid

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Mysql8.0.17,猜测8.0.30以下估计都有这个问题,问题毕现

Minimal yet complete reproducer code (or URL to code):

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version(e.g. java -version ): jdk8
  • Seata client/server version: 1.6.0
  • Database version: mysql8.0.17
  • OS(e.g. uname -a ):
  • Others:

相关问题