LCN 错误: attempts to join the non-existent transaction group

分布式事务 lcn 错误:
com.codingapi.txlcn.logger.AbstractTxLogger.error(AbstractTxLogger.java:70) - business code error

attempts to join the non-existent transaction group

rpc execute service error. action: joinGroup
在这里插入图片描述

困扰了我一天,排除了各种可能性

@Transactional 事务?
jar 冲突?
@Feign 重写失败?

结果都不是,最后考虑到分组Id 是保存到redis ,于是打开redis,发现分组Id 几秒就失效了,
如何是正常执行,不到断点,可能没什么,打了断点测试问题就出来了
在这里插入图片描述

解决办法

修改TM 服务端分组ID 缓存时长,重打jar 包接口


# 分布式事务执行总时间(ms). 默认为36000
tx-lcn.manager.dtx-time=600000

在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章