Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.2 A->B->C,如果B应用执行时间超过1秒,就直接异常了。如何修改这个最大等待时间? #564

Open
hkd582171560 opened this issue Feb 20, 2021 · 1 comment

Comments

@hkd582171560
Copy link

根据官方文档下载的LCN demo正常执行没问题,但是一旦 A->B->C ,比如说B自己业务执行时间超过了1秒(用Thead.sleep(3000L)模拟,就会报错
TxManagerException: attempts to join the non-existent transaction group.

怀疑是TC的最大等待时间是1秒,阅读了源码发现也确实如此。因此想把tm-rpc-timeout 调大一点,
看了官方文档,TC中加tx-lcn.client.tm-rpc-timeout= 就可以,但是加了之后报错,发现 TxClientConfig 中的属性是私有的,所以请求应该如果调大这个参数呢?

ps:我也设法在TM中调参数,可是发现TM中是固定写死了1秒,也没办法解决。

还是说是我下载的版本环境问题?大家有遇到过用分布式锁事务的时候,当业务执行时间较长时的解决方案

@hkd582171560
Copy link
Author

沃日,和LCN没关系,是dubbo默认超时时间1S。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@hkd582171560 and others