Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
When the Omega call the compensation method fail, Omega should let Alpha know about it.
In the file of
https://github.com/apache/servicecomb-pack/blob/master/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/CallbackContext.java
} catch (IllegalAccessException | InvocationTargetException e) { LOG.error( "Pre-checking for callback method " + contextInternal.callbackMethod.toString() + " was somehow skipped, did you forget to configure callback method checking on service startup?", e); }
Omega just catches the invocation exception to avoid Alpha sending out the compensation command again, but we need to update the compensation method status, to let Alpha know if the compensation method is invoked rightly.