[ 
https://issues.apache.org/jira/browse/CONNECTORS-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060518#comment-13060518
 ] 

Karl Wright commented on CONNECTORS-217:
----------------------------------------

My only comment is that you should structure the code so that after the global 
flag is set, a try/finally block is used to clear the flag.  Otherwise an 
exception from within AgentRun will leave dangling locks.  For example:

<set flag>
try
{
...
}
finally
{
  <clear flag>
}


> Check running more than one of instance of agent
> ------------------------------------------------
>
>                 Key: CONNECTORS-217
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-217
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: API
>            Reporter: Shinichiro Abe
>            Priority: Minor
>         Attachments: CONNECTORS-217-exp.patch
>
>
> Now, if one runs the o.a.manifold.agents.AgentRun command twice
> on multi process, Java procceses run twice.
> Even though the case of setting sync dir, the problem occurs.
> In jetty the problem doesn't occur because of single process.
> If one runs "executecommand.sh org.apache.manifold.agents.AgentRun" twice,
> the command should warn that it is already running.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to