study__chengxuyuan
2019-11-26 14:15分布式tx-lcn5.0.2版本,测试遇到的问题
首先是debug 断点调试 5.0.2
tm和tc,tm正在创建事务组的时候,tc会进入到这个函数里面,并且会进入到
log.warn("Non lcn connection when clear transaction.");
@Override
public void clear(String groupId, int state, String unitId, String unitType) throws TransactionClearException {
try {
LcnConnectionProxy connectionProxy = globalContext.getLcnConnection(groupId);
connectionProxy.notify(state);
// todo notify exception
} catch (TCGlobalContextException e) {
log.warn("Non lcn connection when clear transaction.");
}
}
不知道这个过程是如何调用的,是否是超时。
tm里面可以设置dtxTime,tc不能设置?tc会读取tc的这个文件,但是这得修改tc的源码,然后打jar包修改。按着官网上说的,tm里面设置的时间会传到tc这边来,但是没看到。修改tm的配置文件并没有影响到tc。求解答。
public class TxClientConfig {
public TxClientConfig() {
this.dtxAspectOrder = 0;
this.dtxTime = 30 * 1000;
this.managerAddress = Collections.singletonList("127.0.0.1:8070");
}
。。。。。
}
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 为什么类型断言在一种情况下有效,而在另一种情况下无效?
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 脚本运行两次?
- mysql
- php
- 3个回答
- 求帮忙分析下Tomcat崩溃日志
- java
- tomcat
- 3个回答
- 为什么这个恶意代码会一直附加到我的index.php文件中?
- security
- php
- 4个回答
- onClickActionListener的问题
- android
- 1个回答
换一换