You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2016/03/24 20:02:25 UTC

[jira] [Closed] (UIMA-4877) UIMA-DUCC: Agent sets the state of process to Running

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

Jerry Cwiklik closed UIMA-4877.
-------------------------------
    Resolution: Fixed

Modified to set initial state to Running for JDs and APs only. These processes dont report to an agent their internal states so agent assuming Running after launch. All other types of child processes report state transitions and an agent will set their state accordingly

> UIMA-DUCC: Agent sets the state of process to Running 
> ------------------------------------------------------
>
>                 Key: UIMA-4877
>                 URL: https://issues.apache.org/jira/browse/UIMA-4877
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.1.0-Ducc
>
>
> The agent wrongly sets a state of a child process to Running right after launch. This should only be done for processes which don't report their internal state transitions to the agent (JDs and APs). 
> When a child process is launched (JP or UIMA-AS service), it immediately reports back to the agent its state as Initializing. The agent updates the child state in its internal process list and when publish inventory event is triggered the right info is communicated to the OR ( process in Initializing state).
> There is a race condition which produces erroneous state. In this scenario, a child process is launched, its state is set to Running, and before the process reports its state, the publish inventory is triggered and the OR is told that the process is running. Subsequent to that, the process sends a state update to its Agent telling it that its state=Initializing. The agent updates internal state of this process and publishes that state on the next publish inventory event. The problem is that the OR does not go back to Initializing once it sees a process in Running state. This is of course the right behavior.  
> Change the agent to set process state to Running for JDs and APs only. The other types are subject to reported state transitions with initial state=Starting.
>  



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