coolbeevip commented on issue #588: 超時場景下 Failed to process grpc coordinate command URL: https://github.com/apache/servicecomb-pack/issues/588#issuecomment-552330736 InterruptedException 这个异常是因为 @Compensable 设置了5秒超时,而这个方法中 sleep 10秒,这回导致这个方法在 sleep的时候被 TimeoutProb 强制中断。 而日志中已经能明确看到 B 的补偿方法 cancel 方法已经被调用 ``` 2019-11-11 13:29:58.251 INFO 9180 --- [ault-executor-2] s.p.o.c.g.s.GrpcCompensateStreamObserver : Received compensate command, global tx id: 80465bee-caf7-4083-b401-2d149b0d2010, local tx id: af4cbf20-6b08-40d5-83ec-127fc2bcca5b, compensation method: public java.util.List com.example.microserviceB.service.BasicService.cancel() 2019-11-11 13:29:58.254 INFO 9180 --- [ault-executor-2] c.e.microserviceB.service.BasicService : B BasicService cancel() ``` 但是我看到补偿方法 cancel 带一个返回参数,有可能是这个返回参数导致的吗 @WillemJiang @zhfeng
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
