tx-lcn
tx-lcn copied to clipboard
LCN distributed transaction framework, compatible with dubbo, spring cloud and Motan framework, supports various relational databases
看issue发现很多人也有这个问题,我最近也碰到了,然后跟踪了一下源码,总算解决了。 下面给出我的解决步骤: 1. 打开LCN Logger `logging.level.com.codingapi.txlcn = debug` 2. 检查日志中是否包含以下log。如包含,转6 `com.codingapi.txlcn.tracing.Tracings : tracing apply group:693a5ae3226537.....` 3. 检查日志中的各服务log中groupId是否一致 。如一致,转6 `c.c.t.t.c.context.DefaultGlobalContext : Start TxContext[693a5ae3226537]` 4. 检查是否用了 @EnableWebMvc 注解。如用了,转6 5. 添加MVC拦截器 ``` public...
### 1. Bug Description 我的业务是 A,B,C三个服务,A 服务作为业务入口,依次调用 B,C 两个服务。 USER -> A A -> B A -> C 当TM 通知 B 或者 C commit 的前,如果这两个服务宕机,此时 A 服务并没有捕获到异常。这会导致 USER 已为接口调用成功了。 我不确定是我的用法有问题,还是目前就存在这样的问题。我理解此时用该有一定的重试机制,并且重试失败后此全局事务应该处于挂起状态,并抛出异常给业务。...
- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate. ### 1. Bug Description Tm通知tc的时候 部分没有通知成功 出现数据不一致的情况 应该如何处理比较好? ### 2. Environment:...
PrimaryKeyListVisitorHandler 这个配置 tx-lcn.primary-key-package 怎么填啊?
Non lcn connection when clear transaction.
根据官方文档下载的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秒,也没办法解决。 还是说是我下载的版本环境问题?大家有遇到过用分布式锁事务的时候,当业务执行时间较长时的解决方案
- [x] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate. ### 1. Bug Description 基于SpringCloud, Springboot 1.5.7, LCN 4.1.0 应用A 发起事务, 请求应用B,...
### 问题描述: 依照下面的代码进行描述,我在调用方服务中设置Thread.sleep(10000)来模拟浏览器调用超时的情况。浏览器请求`controller`,访问调用方服务的`startFlow`方法,第一次请求log如下: ``` 18:02:09.730 DEBUG 19228 --- [nio-8120-exec-8] c.z.l.w.p.d.P.selectDetail - ==> Preparing: select dtl.*, ifnull(mb.weight, 0) weight FROM pr_purchase_plan_apply_order_detail dtl left join b_material_basic mb on mb.id = dtl.material_id and...
1.控制器 @DS(value = Constants.DEFAULT_DS) @RequestMapping(value = "/registerCompany", method = RequestMethod.POST) @ApiOperation(value = "注册公司", httpMethod = "POST", notes = "注册公司", produces = "application/json;charset=UTF-8") public SoulResult registerCompany() { CompanyDO company = new...
- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate. ### 1. Bug Description 正常请求后,两边的数据都入库了。 但是在服务方会报错 在发起方内部人为抛异常,服务方仍然入库了。 ### 2. Environment: -...