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 几秒就失效了,
如何是正常执行,不到断点,可能没什么,打了断点测试问题就出来了
LCN 错误: attempts to join the non-existent transaction group_第1张图片

解决办法

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


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

LCN 错误: attempts to join the non-existent transaction group_第2张图片

你可能感兴趣的:(错误专栏,#,分布式解决方案)