[
https://issues.apache.org/jira/browse/SCB-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang updated SCB-1107:
------------------------------
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
{code}
} 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);
}
{code}
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.
was:
When the Omega call the compensation method fail, Omega should let Alpha know
about it.
https://github.com/apache/servicecomb-pack/blob/master/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/CallbackContext.java
> Omega should send the compensation failure to alpha
> ---------------------------------------------------
>
> Key: SCB-1107
> URL: https://issues.apache.org/jira/browse/SCB-1107
> Project: Apache ServiceComb
> Issue Type: Improvement
> Reporter: Willem Jiang
> Priority: Major
>
> 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
> {code}
> } 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);
> }
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)