You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "haifeng niu (JIRA)" <ji...@apache.org> on 2018/04/26 15:45:00 UTC

[jira] [Created] (SCB-522) Compensation call could fail because of CompensationContext is instance related

haifeng niu created SCB-522:
-------------------------------

             Summary: Compensation call could fail because of CompensationContext is instance related
                 Key: SCB-522
                 URL: https://issues.apache.org/jira/browse/SCB-522
             Project: Apache ServiceComb
          Issue Type: Bug
          Components: Saga
    Affects Versions: saga-0.1.0
            Reporter: haifeng niu


It's a critical situation, I could not provide a test case. But I can explain it with an example:

We deploy two service instance A and B with same codebase. We usually do this for high available.

If A did some operation, CompensationContext of A will cache instance of service bean, than later it would be used in compensation call if error happens.

But if A crash, the coordinator (aka alpha) will call an backup service instance, which is B, to compensate. Although there is no cached instance of service bean in CompensationContext of B, so compensation fail.

We expect any instance of same service should process compensation successfully, if it doesn't, it is a bug.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)