You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Yang Bo (JIRA)" <ji...@apache.org> on 2018/05/16 06:39:00 UTC

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

     [ https://issues.apache.org/jira/browse/SCB-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Bo updated SCB-522:
------------------------
    Fix Version/s: saga-0.2.0

> 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
>            Priority: Major
>             Fix For: saga-0.2.0
>
>
> 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)