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

Jerry Cwiklik resolved UIMA-5150.
---------------------------------
    Resolution: Fixed

Modified common code to detect duplicate ducc daemons (WS, OR, PM, SM, RM, 
Agent). The new code was added to DuccService (java main) which is shared by 
all ducc daemons. The check is made right after process starts to fail fast in 
case a duplicate is detected.

First, on a daemon startup, the ps command is launched and output scrapped to 
collect currently running processes on a node. Next, the process list is 
filtered excluding those that are not owned by the daemon process owner uid. 
Next, each process in the list is checked to see if its a ducc daemon. If so, a 
final check is made to see if its a duplicate. Duplicate daemon process exits 
immediately.


> Duplicate agents (or daemons) MUST be avoided
> ---------------------------------------------
>
>                 Key: UIMA-5150
>                 URL: https://issues.apache.org/jira/browse/UIMA-5150
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Burn Lewis
>            Assignee: Jerry Cwiklik
>             Fix For: 2.2.0-Ducc
>
>
> Very strange things happen if a 2nd agent is started on a node.
> - Should we include the pid in the agent id?
> - Keep a registry of legal agents?
> - Make each agent check for others at startup?
> - ???



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

Reply via email to