[GitHub] [servicecomb-pack] WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate command

2019-11-11 Thread GitBox
WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate 
command
URL: 
https://github.com/apache/servicecomb-pack/issues/588#issuecomment-552423038
 
 
   Add   a link of #346  which relates to this issue.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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] [servicecomb-pack] WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate command

2019-11-11 Thread GitBox
WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate 
command
URL: 
https://github.com/apache/servicecomb-pack/issues/588#issuecomment-552422024
 
 
   > > 我觉得Cancel方法返回参数应该影响。
   > 
   > 感謝各位的指導,但補償不是必須滿足幕等的條件嗎 ?
   > 那該怎麼設計補償呢 ?
   > 謝謝
   大概有两种方式实现:
   1. 
补偿可以通过软删除的方式,通过设置cancel值来进行。具体可以参加我们的[demo](https://github.com/apache/servicecomb-pack/tree/master/demo/saga-spring-demo)
   
   2. 这块可以通过全局事务ID和本地事务ID作为Key 在数据库中做相关的判断。 一般来说我们可以把事务执行的上下文存储到数据库中, 
在恢复的过程中通过读取这些上下文进行相关的恢复。如果已经恢复成功,则不需要修改原始数据。
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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] [servicecomb-pack] WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate command

2019-11-10 Thread GitBox
WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate 
command
URL: 
https://github.com/apache/servicecomb-pack/issues/588#issuecomment-552321782
 
 
   因为TimeoutProb检测出调用超时了,触发了InterruptedException, 
但是由于这个Exception被吃到了,(RecoveryPolicyTimeoutWrapper 需要根据InterruptedException 
做一些处理)导致后续处理出现问题。
   
   2019-11-11 13:29:57.868 WARN 9180 --- [ probe] 
o.a.s.p.o.t.wrapper.TimeoutProb : Thread interrupted on 5001ms timeout (over 
5000ms)
   
   建议把 ServiceB 中getNames() 方法中的 catch(InterruptedException e) 的代码去掉再跑一下看看。
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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