Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1273

Race condition between Task failed and Task done

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              afchung90 Andrew Chung
              afchung90 Andrew Chung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: