yanwu12138 commented on issue #298: GrpcTxEvent$Builder.setGlobalTxId:NullPointerException URL: https://github.com/apache/incubator-servicecomb-saga/issues/298#issuecomment-422258272 @WillemJiang Ok, I have two services for saga-client and saga-server. I call saga-server through saga-client, they have to operate their own database, in this case, we need to ensure the final consistency of the data. My approach is to add the @sagaStart method annotation when the global starting point of the saga-client transaction. Then add the @Compensable annotation on the child transaction function in saga-client. In saga-server, again, I need to add the @sagaStart annotation to the place where the service is transferred, otherwise a NullPointerException will occur. My demo code: https://gitee.com/yanwu0527/transaction-saga-demo. Thank you.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
