You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you show us the big picture of the service invocation?
Current Saga implementation won't call the compensation method of ServiceA when ServiceA through the exception. You need to leverage spring transaction to revert the change in the call of ServiceA.
@Gannalyo You can take the Dubbo demo as an example, the Transactional annotation could avoid the database commit if there is an exception throw. In this way we don't need to call the compensation method of ServiceA.
Please close this issue if you got the answer.
Right, it indeed save a call for the compensation of Service A. I have added the spring transaction for Service A, then it worked. Maybe Spring Cloud was better than Dubbo & GRPC.
Okay, I'll close it right now. Thanks.
Does the compensation depends on Spring Transaction?
I defined an compensable interface without Spring Transaction, but it didn't call rollback method when produced an exception in it.
My code:
Information for txevent data:
The text was updated successfully, but these errors were encountered: