gene1101 commented on issue #589: servicecomb的向前恢复和逆向补偿不可兼得吗?
URL: 
https://github.com/apache/servicecomb-pack/issues/589#issuecomment-551377336
 
 
   > > > > > 你配置 @Compensable 的 retries 值是多少?
   > > > > 
   > > > > 
   > > > > 我配置的是3次,测试发现向前恢复是有做,但是3次重试不成功后,saga直接就结束了,alaph端没有生成补偿命令出来。
   > > > 
   > > > 
   > > > 你用的什么版本?是传统模式还是状态机模式?
   > > 
   > > 
   > > 用的是0.6.0的版本,目前用了传统模式,状态机模式需要依赖的外部组件还是比较多。
   > > io.grpc.StatusRuntimeException: CANCELLED: call already cancelled
   > > at io.grpc.Status.asRuntimeException(Status.java:517)
   > > at 
io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onCompleted(ServerCalls.java:356)
   > > at 
org.apache.servicecomb.pack.alpha.server.tcc.callback.GrpcOmegaTccCallback.disconnect(GrpcOmegaTccCallback.java:51)
   > > at 
org.apache.servicecomb.pack.alpha.server.tcc.GrpcTccEventService.onDisconnected(GrpcTccEventService.java:100)
   > > at 
org.apache.servicecomb.pack.contract.grpc.TccEventServiceGrpc$MethodHandlers.invoke(TccEventServiceGrpc.java:646)
   > > at 
io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171)
   > > at 
io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
   > > at 
io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:707)
   > > at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
   > > at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
   > > at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   > > at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   > > at java.lang.Thread.run(Thread.java:748)
   > > 服务端抛出了异常也很奇怪,出现TCC的Omega回调
   > 
   > 你是否也使用了TCC的注解?
   
   我没有使用TCC注解。
   
   
   另外定位到一个问题,servicecomb里面使用了kyro做序列化,我这边定义的参数是没有无参构造器,这个反序列化会有问题。
   
   
![image](https://user-images.githubusercontent.com/15373196/68449268-75b20a00-0221-11ea-9df6-7d4661902aca.png)
   

----------------------------------------------------------------
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

Reply via email to