[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   
![1](https://user-images.githubusercontent.com/17855411/42814197-0b10404e-89f6-11e8-8bca-0884ebac7ee8.png)
   
![2](https://user-images.githubusercontent.com/17855411/42814210-176ad430-89f6-11e8-8752-5dfb2de5c006.png)
   
![3](https://user-images.githubusercontent.com/17855411/42814211-188d43a2-89f6-11e8-8085-00355a475b34.png)
   
![4](https://user-images.githubusercontent.com/17855411/42814215-18e70e78-89f6-11e8-8e01-d35a06f999ec.png)
   
   2、CExceptionWhenAbAc
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
 如图4所示,b没有触发调用补偿方法(cancelRun);
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;
   
   问题:补偿方法未被触发?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   
![1](https://user-images.githubusercontent.com/17855411/42814197-0b10404e-89f6-11e8-8bca-0884ebac7ee8.png)
   
   2、CExceptionWhenAbAc
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
 如图4所示,b没有触发调用补偿方法(cancelRun);
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;
   
   问题:补偿方法未被触发?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   
![1](https://user-images.githubusercontent.com/17855411/42814197-0b10404e-89f6-11e8-8bca-0884ebac7ee8.png)
   
![2](https://user-images.githubusercontent.com/17855411/42814210-176ad430-89f6-11e8-8752-5dfb2de5c006.png)
   
![3](https://user-images.githubusercontent.com/17855411/42814211-188d43a2-89f6-11e8-8085-00355a475b34.png)
   
![4](https://user-images.githubusercontent.com/17855411/42814215-18e70e78-89f6-11e8-8e01-d35a06f999ec.png)
   
   
   
   
   2、CExceptionWhenAbAc
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
 如图4所示,b没有触发调用补偿方法(cancelRun);
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;
   
   问题:补偿方法未被触发?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   2、CExceptionWhenAbAc
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
 如图4所示,b没有触发调用补偿方法(cancelRun);
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;
   
   问题:补偿方法未被触发?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   
![1](https://user-images.githubusercontent.com/17855411/42814090-bb9d3b34-89f5-11e8-93f8-c7ecfacfb8d8.png)
   
![2](https://user-images.githubusercontent.com/17855411/42814092-bbfc0a9c-89f5-11e8-8999-b9bc3978d1f9.png)
   
![3](https://user-images.githubusercontent.com/17855411/42814093-bc542bc8-89f5-11e8-921a-d24371739387.png)
   
![4](https://user-images.githubusercontent.com/17855411/42814094-bcb2a784-89f5-11e8-993f-9612c9c0a5fd.png)
   2、CExceptionWhenAbAc
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
 如图4所示,b没有触发调用补偿方法(cancelRun);
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;
   
   问题:补偿方法未被触发?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] airbaby edited a comment on issue #223: Dubbo事务补偿问题

2018-07-17 Thread GitBox
airbaby edited a comment on issue #223: Dubbo事务补偿问题
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405545510
 
 
   您好,已经调整到dubbo2.6.1版本,按照提供的dubbo-demo内所有jar包版本保持不变。应该与dubbo版本无关,仍然存在如下问题:
   1、 alpha-server-0.2.0-exec.jar 采用MySQL,会报一个错误;
 如图3所示;
   
![1](https://user-images.githubusercontent.com/17855411/42814090-bb9d3b34-89f5-11e8-93f8-c7ecfacfb8d8.png)
   
![2](https://user-images.githubusercontent.com/17855411/42814092-bbfc0a9c-89f5-11e8-8999-b9bc3978d1f9.png)
   
![3](https://user-images.githubusercontent.com/17855411/42814093-bc542bc8-89f5-11e8-921a-d24371739387.png)
   
![4](https://user-images.githubusercontent.com/17855411/42814094-bcb2a784-89f5-11e8-993f-9612c9c0a5fd.png)
   
   2、CExceptionWhenAbAc
   
 如图1和图2所示,b没有触发调用补偿方法(cancelRun)进行补偿;
   public void cancelRun(InvokeContext invokeContext) {
   LOG.info("B.cancel called");
   doCancelBusi();
   }
   3、AExceptionWhenAb
   
   
 如图4所示,b没有触发调用补偿方法(cancelRun);
   
   
4、其他Ab, AbBc,BExceptionWhenAb, BExceptionWhenAb, 
CExceptionWhenAbBc,因为有@Transactional所以会回滚正常;

   问题:补偿方法未被触发?
   在2018年7月17日 15:12,李彪 写道:
是的,C事务抛出中断异常,不补偿是正常的; 但是B事务执行成功了,但是没有调用补偿(cancel方法); 运行了dubbo 
demo方法,也并没有执行补偿,test-b表状态是run没有恢复为init;
   
   
   执行地址格式: serviceInvoke/CExceptionWhenAbAc
   
   
你好,我使用的dubbo版本是2.5.3;是不是dubbo版本或者部署alpha-server部署有问题;
   
   

   在2018年7月17日 14:49,Willem Jiang 写道:
   
   请问C事务中断是抛异常吗?因为你使用了@transactional, 如果服务抛异常, 对应的数据库提交动作就不会执行。 不调用C的补偿方法是正确的。 
但是B的补偿方法是需要调用的, 这个在Dubbo示例的代码里面是能够正常执行的。 
https://github.com/apache/incubator-servicecomb-saga/blob/master/acceptance-tests/acceptance-pack-dubbo-demo/src/test/resources/CExceptionWhenAbAc_scenario.feature
   
   —
   You are receiving this because you authored the thread.
   Reply to this email directly, view it on GitHub, or mute the thread.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services