WillemJiang commented on issue #346: compensation method invoke before compensable method URL: https://github.com/apache/servicecomb-saga/issues/346#issuecomment-443101731 As it is caused by the timeout, Alpha don't have chance to know if the compensable method is finished or not. Alpha have to abort the transaction by invoke the compensation method. I don't think a lock could resolve this issue perfectly, because of the timeout could be caused by lot of reason. Such as the if the network connection is broken, Alpha cannot receive the TxEndedEvent, but the compensable method is finished. I'm think about let the Omega take control of timeout checking, it could be much better for us to handle the timeout situation.
---------------------------------------------------------------- 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
