Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1107

Omega should send the compensation failure to alpha

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • pack-0.7.0
    • Saga
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: