You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Eric Lee (JIRA)" <ji...@apache.org> on 2018/01/10 01:56:03 UTC

[jira] [Created] (SCB-213) [pack] proper timing to send out SagaEndedEvent on asynchronous compensation

Eric Lee created SCB-213:
----------------------------

             Summary: [pack] proper timing to send out SagaEndedEvent on asynchronous compensation
                 Key: SCB-213
                 URL: https://issues.apache.org/jira/browse/SCB-213
             Project: Apache ServiceComb
          Issue Type: Improvement
          Components: Saga
    Affects Versions: saga-0.1.0
            Reporter: Eric Lee
             Fix For: saga-0.1.0


Currently, SagaEndedEvent is sent immediately after receiving responses of sub transactions. However, this behavior is incorrect when handling asynchronous compensation as compensation may have some delay. To simplify this, we suppose the error response code will throw an exception to the SagaStart node. In this way, the normal responses will send out the SagaEndedEvent immediately when they finish while the failed transaction will complement the SagaEndedEvent when the compensations complete.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)