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

Eric Lee resolved SCB-213.
--------------------------
    Resolution: Fixed

> [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
>            Assignee: 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)

Reply via email to