You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Julia (JIRA)" <ji...@apache.org> on 2016/03/25 02:59:25 UTC

[jira] [Resolved] (REEF-1273) Race condition between Task failed and Task done

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

Julia resolved REEF-1273.
-------------------------
       Resolution: Fixed
    Fix Version/s: 0.15

Resolved via https://github.com/apache/reef/pull/898

> Race condition between Task failed and Task done
> ------------------------------------------------
>
>                 Key: REEF-1273
>                 URL: https://issues.apache.org/jira/browse/REEF-1273
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF.NET, REEF.NET Evaluator
>            Reporter: Andrew Chung
>            Assignee: Andrew Chung
>             Fix For: 0.15
>
>
> The following execution order will cause an invalid state transition in the {{TaskRuntime}}:
> 1. Task completes, state not yet changed.
> 2. Close {{ContextRuntime}}, finds out task's {{CloseHandler}} not bound, throw an Exception, but Exception has not yet propagated upwards to change state to {{Failed}}.
> 3. Task changes state to {{Done}}.
> 4. Exception propagates upwards, state changed to {{Failed}}. Inconsistent state transition.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)