UIMA
  1. UIMA
  2. UIMA-1981

UIMA AS releases parent CAS prematurely

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      UIMA AS aggregate uses a child counter along with a few booleans kept in a cache to determine when to put parent CAS in play. If there are no more child CASes in play and the parent CAS has returned from a CM, the CAS may proceed into a finalStep() or into process() if parentProcessLast=true. Upon return from a CM, the state of the CAS is marked as returned from CM. Problem is it remains set to as returned even though it may be subsequently sent to another delegate CM. When the last child CAS is processed, the parent CAS is released even though it may still be in a CM delegate. The fix for this is to reset "return from delegate" flag to false before dispatching a CAS to the next delegate in a flow.

        Activity

        Hide
        Jerry Cwiklik added a comment -

        Modified simpleStep() in UIMA AS aggregate to set replyReceived flag to false before dispatching CAS to a delegate

        Show
        Jerry Cwiklik added a comment - Modified simpleStep() in UIMA AS aggregate to set replyReceived flag to false before dispatching CAS to a delegate

          People

          • Assignee:
            Jerry Cwiklik
            Reporter:
            Jerry Cwiklik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development