专栏首页IT云清byteTCC框架--@Compensable注解问题

byteTCC框架--@Compensable注解问题

在使用byteTCC框架0.5.0-BETA2版本时,发现一个关于@Compensable注解的问题,这里记录下:

1.@Compensable注解问题

若try的实现逻辑写在serviceImpl中,而不是controller中,那么,@Compensable需要添加在controller中,而不是serviceImpl中。

如果仅仅添加在serviceImpl中,那么confirm或者cancel将不会执行;

如果controller和serviceImpl都添加,那么,confirm或者cancel会执行2遍;

当仅仅添加在servicemImpl中时,场景为A->B,测试日志如下:

A:

2019-02-14 09:22:42.991  INFO 20244 --- [nio-8012-exec-5] o.b.bytejta.TransactionManagerImpl       : f48e38f5d3e1527256ab5f038d63d25f> begin-transaction
2019-02-14 09:22:43.077  WARN 20244 --- [nio-8012-exec-5] o.b.b.s.s.CompensableMethodInterceptor   : Compensable-service public int com.java4all.service.impl.BankServiceImpl.decreaseMoney(java.lang.Integer,java.math.BigDecimal) is participanting in a non-TCC transaction which was created at:
2019-02-14 09:22:43.087  INFO 20244 --- [nio-8012-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab5f038d63d25f> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e1527256acd704004a0b85, flags: 0
2019-02-14 09:22:43.113  INFO 20244 --- [nio-8012-exec-5] c.java4all.service.impl.BankServiceImpl  : try decreaseMoney: id = 1,money =500
2019-02-14 09:22:43.113  INFO 20244 --- [nio-8012-exec-5] com.java4all.controller.BankController   : 修改行数为:1
2019-02-14 09:22:43.113  INFO 20244 --- [nio-8012-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab5f038d63d25f> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e1527256acd704004a0b85, flags= 67108864
2019-02-14 09:22:43.113  INFO 20244 --- [nio-8012-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab5f038d63d25f> commit-transaction start
2019-02-14 09:22:43.132  INFO 20244 --- [nio-8012-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab5f038d63d25f> commit-transaction complete successfully
2019-02-14 09:25:12.360  INFO 20244 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

B:

2019-02-14 09:22:42.996  INFO 19848 --- [nio-8011-exec-3] o.b.bytejta.TransactionManagerImpl       : f48e38f5d3e1527256ab640337c0975b> begin-transaction
2019-02-14 09:22:42.996  WARN 19848 --- [nio-8011-exec-3] o.b.b.s.s.CompensableMethodInterceptor   : Compensable-service public int com.java4all.service.impl.UserServiceImpl.increaseMoney(java.lang.Integer,java.math.BigDecimal) is participanting in a non-TCC transaction which was created at:
2019-02-14 09:22:43.009  INFO 19848 --- [nio-8011-exec-3] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab640337c0975b> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e1527256ac8904925c14de, flags: 0
2019-02-14 09:22:43.048  INFO 19848 --- [nio-8011-exec-3] c.java4all.service.impl.UserServiceImpl  : try increaseMoney: id = 1,money =500
2019-02-14 09:22:43.048  INFO 19848 --- [nio-8011-exec-3] c.java4all.service.impl.UserServiceImpl  : 修改行数为:1
2019-02-14 09:22:43.048  INFO 19848 --- [nio-8011-exec-3] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab640337c0975b> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e1527256ac8904925c14de, flags= 67108864
2019-02-14 09:22:43.048  INFO 19848 --- [nio-8011-exec-3] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab640337c0975b> commit-transaction start
2019-02-14 09:22:43.074  INFO 19848 --- [nio-8011-exec-3] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e1527256ab640337c0975b> commit-transaction complete successfully
2019-02-14 09:25:04.599  INFO 19848 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

如果controller和serviceImpl都添加,场景为A->B,测试日志如下:

B:

2019-02-14 09:30:47.568  INFO 19844 --- [nio-8011-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-02-14 09:30:47.569  INFO 19844 --- [nio-8011-exec-2] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-02-14 09:30:47.587  INFO 19844 --- [nio-8011-exec-2] o.s.web.servlet.DispatcherServlet        : Completed initialization in 18 ms
2019-02-14 09:30:47.854  INFO 19844 --- [nio-8011-exec-2] o.b.bytetcc.CompensableCoordinator       : f48e38f5d3e152725ebb4901182f54d2| compensable transaction begin!
2019-02-14 09:30:47.892  INFO 19844 --- [nio-8011-exec-2] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ebff8016ada5b63> begin-participant
2019-02-14 09:30:47.893  INFO 19844 --- [nio-8011-exec-2] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| register compensable service: f48e38f5d3e152725ebb4901182f54d2.
2019-02-14 09:30:47.896  INFO 19844 --- [nio-8011-exec-2] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| register compensable service: f48e38f5d3e152725ebb4901182f54d2.
2019-02-14 09:30:48.334  INFO 19844 --- [nio-8011-exec-2] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1ce0435200b26, flags: 0
2019-02-14 09:30:48.390  INFO 19844 --- [nio-8011-exec-2] c.java4all.service.impl.UserServiceImpl  : try increaseMoney: id = 1,money =500
2019-02-14 09:30:48.390  INFO 19844 --- [nio-8011-exec-2] c.java4all.service.impl.UserServiceImpl  : 修改行数为:1
2019-02-14 09:30:48.391  INFO 19844 --- [nio-8011-exec-2] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1ce0435200b26, flags= 67108864
2019-02-14 09:30:48.410  INFO 19844 --- [nio-8011-exec-2] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> commit-participant start
2019-02-14 09:30:48.441  INFO 19844 --- [nio-8011-exec-2] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebff8016ada5b63> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1ce0435200b26, opc= false
2019-02-14 09:30:48.441  INFO 19844 --- [nio-8011-exec-2] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| try: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebff8016ada5b63-f48e38f5d3e152725ec1ce0435200b26.
2019-02-14 09:30:48.441  INFO 19844 --- [nio-8011-exec-2] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| try: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebff8016ada5b63-f48e38f5d3e152725ec1ce0435200b26.
2019-02-14 09:30:48.442  INFO 19844 --- [nio-8011-exec-2] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> commit-participant complete successfully
2019-02-14 09:30:49.851  INFO 19844 --- [nio-8011-exec-5] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ec7d307333691ce> begin-participant
2019-02-14 09:30:49.868  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1de06c15159df, flags: 0
2019-02-14 09:30:49.912  INFO 19844 --- [nio-8011-exec-5] c.j.service.impl.UserServiceConfirm      : confirm increaseMoney: id = 1,money =500
2019-02-14 09:30:49.912  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1de06c15159df, flags= 67108864
2019-02-14 09:30:49.927  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec7d307333691ce> commit-participant start
2019-02-14 09:30:49.958  INFO 19844 --- [nio-8011-exec-5] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebff8016ada5b63> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1de06c15159df, opc= false
2019-02-14 09:30:49.958  INFO 19844 --- [nio-8011-exec-5] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| confirm: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebff8016ada5b63-f48e38f5d3e152725ec1de06c15159df.
2019-02-14 09:30:49.958  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec7d307333691ce> commit-participant complete successfully
2019-02-14 09:30:49.958  INFO 19844 --- [nio-8011-exec-5] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ec73e085e3b0b6c> begin-participant
2019-02-14 09:30:49.973  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1dd0535eda111, flags: 0
2019-02-14 09:30:50.019  INFO 19844 --- [nio-8011-exec-5] c.j.service.impl.UserServiceConfirm      : confirm increaseMoney: id = 1,money =500
2019-02-14 09:30:50.019  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebff8016ada5b63> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1dd0535eda111, flags= 67108864
2019-02-14 09:30:50.033  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec73e085e3b0b6c> commit-participant start
2019-02-14 09:30:50.064  INFO 19844 --- [nio-8011-exec-5] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebff8016ada5b63> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec1dd0535eda111, opc= false
2019-02-14 09:30:50.064  INFO 19844 --- [nio-8011-exec-5] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| confirm: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebff8016ada5b63-f48e38f5d3e152725ec1dd0535eda111.
2019-02-14 09:30:50.064  INFO 19844 --- [nio-8011-exec-5] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec73e085e3b0b6c> commit-participant complete successfully
2019-02-14 09:30:50.065  INFO 19844 --- [nio-8011-exec-5] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| compensable transaction committed!
2019-02-14 09:30:50.066  INFO 19844 --- [nio-8011-exec-5] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| forget transaction.

A:

2019-02-14 09:30:46.872  INFO 18320 --- [nio-8012-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-02-14 09:30:46.872  INFO 18320 --- [nio-8012-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-02-14 09:30:46.890  INFO 18320 --- [nio-8012-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 18 ms
2019-02-14 09:30:46.974  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableManagerImpl       : f48e38f5d3e152725ebb4901182f54d2| compensable transaction begin!
2019-02-14 09:30:46.982  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ebb4901182f54d2> begin-participant
2019-02-14 09:30:46.983  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| register compensable service: f48e38f5d3e152725ebb4901182f54d2.
2019-02-14 09:30:47.371  INFO 18320 --- [nio-8012-exec-1] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook installed for: NFLoadBalancer-PingTimer-user-server
2019-02-14 09:30:47.371  INFO 18320 --- [nio-8012-exec-1] c.netflix.loadbalancer.BaseLoadBalancer  : Client: user-server instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=user-server,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2019-02-14 09:30:47.379  INFO 18320 --- [nio-8012-exec-1] c.n.l.DynamicServerListLoadBalancer      : Using serverListUpdater PollingServerListUpdater
2019-02-14 09:30:47.413  INFO 18320 --- [nio-8012-exec-1] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client user-server initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=user-server,current list of Servers=[wang:8011],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;	Instance count:1;	Active connections count: 0;	Circuit breaker tripped count: 0;	Active connections per server: 0.0;]
},Server stats: [[Server:wang:8011;	Zone:defaultZone;	Total Requests:0;	Successive connection failure:0;	Total blackout seconds:0;	Last connection made:Thu Jan 01 08:00:00 CST 1970;	First connection made: Thu Jan 01 08:00:00 CST 1970;	Active Connections:0;	total failure count in last (1000) msecs:0;	average resp time:0.0;	90 percentile resp time:0.0;	95 percentile resp time:0.0;	min resp time:0.0;	max resp time:0.0;	stddev resp time:0.0]
]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@2c5db44f
2019-02-14 09:30:47.482  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| enlist remote resource: 192.168.158.133:USER-SERVER:8011.
2019-02-14 09:30:48.509  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| register compensable service: f48e38f5d3e152725ebb4901182f54d2.
2019-02-14 09:30:49.005  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48505501665e3, flags: 0
2019-02-14 09:30:49.046  INFO 18320 --- [nio-8012-exec-1] c.java4all.service.impl.BankServiceImpl  : try decreaseMoney: id = 1,money =500
2019-02-14 09:30:49.047  INFO 18320 --- [nio-8012-exec-1] com.java4all.controller.BankController   : 修改行数为:1
2019-02-14 09:30:49.048  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48505501665e3, flags= 67108864
2019-02-14 09:30:49.062  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> commit-participant start
2019-02-14 09:30:49.086  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebb4901182f54d2> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48505501665e3, opc= false
2019-02-14 09:30:49.086  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| try: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebb4901182f54d2-f48e38f5d3e152725ec48505501665e3.
2019-02-14 09:30:49.086  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| try: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebb4901182f54d2-f48e38f5d3e152725ec48505501665e3.
2019-02-14 09:30:49.087  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| try completed.
2019-02-14 09:30:49.087  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> commit-participant complete successfully
2019-02-14 09:30:49.088  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ec4d808e98f5f11> begin-participant
2019-02-14 09:30:49.099  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0759200503, flags: 0
2019-02-14 09:30:49.125  INFO 18320 --- [nio-8012-exec-1] c.j.service.impl.BankServiceConfirm      : confirm decreaseMoney: id = 1,money =500
2019-02-14 09:30:49.125  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0759200503, flags= 67108864
2019-02-14 09:30:49.133  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec4d808e98f5f11> commit-participant start
2019-02-14 09:30:49.152  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebb4901182f54d2> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0759200503, opc= false
2019-02-14 09:30:49.152  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| confirm: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebb4901182f54d2-f48e38f5d3e152725ec48e0759200503.
2019-02-14 09:30:49.153  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec4d808e98f5f11> commit-participant complete successfully
2019-02-14 09:30:49.153  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.TransactionCoordinator       : f48e38f5d3e152725ec41909bc43a632> begin-participant
2019-02-14 09:30:49.163  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> enlist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0603cfa9b7, flags: 0
2019-02-14 09:30:49.189  INFO 18320 --- [nio-8012-exec-1] c.j.service.impl.BankServiceConfirm      : confirm decreaseMoney: id = 1,money =500
2019-02-14 09:30:49.189  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ebb4901182f54d2> delist: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0603cfa9b7, flags= 67108864
2019-02-14 09:30:49.199  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec41909bc43a632> commit-participant start
2019-02-14 09:30:49.217  INFO 18320 --- [nio-8012-exec-1] o.b.bytejta.resource.XATerminatorOptd    : f48e38f5d3e152725ebb4901182f54d2> commit: xares= xa-res-archive[descriptor: local-xa-resource[dataSource]], branch= f48e38f5d3e152725ec48e0603cfa9b7, opc= false
2019-02-14 09:30:49.217  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| confirm: identifier= f48e38f5d3e152725ebb4901182f54d2, resourceKey= dataSource, resourceXid= 1207-f48e38f5d3e152725ebb4901182f54d2-f48e38f5d3e152725ec48e0603cfa9b7.
2019-02-14 09:30:49.217  INFO 18320 --- [nio-8012-exec-1] org.bytesoft.bytejta.TransactionImpl     : f48e38f5d3e152725ec41909bc43a632> commit-participant complete successfully
2019-02-14 09:30:49.334  WARN 18320 --- [nio-8012-exec-1] x.MappingJackson2XmlHttpMessageConverter : Failed to evaluate Jackson deserialization for type [[simple type, class void]]: com.fasterxml.jackson.databind.JsonMappingException: Internal error: can't find deserializer for void
2019-02-14 09:30:49.334  WARN 18320 --- [nio-8012-exec-1] .c.j.MappingJackson2HttpMessageConverter : Failed to evaluate Jackson deserialization for type [[simple type, class void]]: com.fasterxml.jackson.databind.JsonMappingException: Internal error: can't find deserializer for void
2019-02-14 09:30:50.086  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| confirm remote branch: 192.168.158.133:USER-SERVER:8011
2019-02-14 09:30:50.087  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| compensable transaction committed!
2019-02-14 09:30:50.089  INFO 18320 --- [nio-8012-exec-1] o.b.bytetcc.CompensableTransactionImpl   : f48e38f5d3e152725ebb4901182f54d2| forget transaction.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • java文件转二进制

    IT云清
  • 21.Elasticsearch分析与分析器

    首先,将一块文本分成适合于倒排索引的独立的 词条 , 之后,将这些词条统一化为标准格式以提高它们的“可搜索性”,或者 recall 分析器执行上面的工作...

    IT云清
  • python教程7--python解二元一次方程ax²+bx+c=0

    IT云清
  • 聊聊sentinel的DataSource

    sentinel-datasource-extension-0.1.1-sources.jar!/com/alibaba/csp/sentinel/dataso...

    codecraft
  • Vue你不得不知道的异步更新机制和nextTick原理

    异步更新是 Vue 核心实现之一,在整体流程中充当着 watcher 更新的调度者这一角色。大部分 watcher 更新都会经过它的处理,在适当时机让更新有序的...

    WahFung
  • python: 记录耗时

    JNingWei
  • python3的字符串格式化

    '{name},{age}'.format(age=28,name='jack')

    py3study
  • ElasticSearch Analysis分析

    分析(analysis)是将文本(如任何电子邮件的正文)转换为添加到倒排索引中进行搜索的tokens或terms的过程。分析由 analyzer 分析器执行,分...

    smartsi
  • Java核心编程快速入门

    Java核心编程部分的基础学习内容就不一一介绍了,本文的重点是JAVA中相对复杂的一些概念,主体内容如下图所示。 ? ? 反射reflect是理解Java语言...

    用户1216676
  • 一种解决启动进程传递参数过长的方法

            工作中,QA同学在测试我们程序的时候,发现在XP下,我们的A进程无法启动我们的B进程。而在Win7 64bit系统下功能正常。RD同学调试后,发...

    方亮

扫码关注云+社区

领取腾讯云代金券