You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2007/03/28 14:55:25 UTC

[jira] Updated: (SOLR-198) RunExecutableListener always waits for the subprocess completion regardless of wait="false"

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

Koji Sekiguchi updated SOLR-198:
--------------------------------

    Attachment: RunExecutableListener.java.diff

> RunExecutableListener always waits for the subprocess completion regardless of wait="false"
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-198
>                 URL: https://issues.apache.org/jira/browse/SOLR-198
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Koji Sekiguchi
>            Priority: Minor
>         Attachments: RunExecutableListener.java.diff
>
>
> Although the type of the value of "wait" attribute is boolean in solrconfig.xml:
>     <listener event="postCommit" class="solr.RunExecutableListener">
>       <str name="exe">snapshooter</str>
>       <str name="dir">solr/bin</str>
>       <bool name="wait">false</bool>
>       <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
>       <arr name="env"> <str>MYVAR=val1</str> </arr>
>     </listener>
> RunExecutableListener trys to get the value as a string:
>     if ("false".equals(args.get("wait"))) wait=false;
> therefore, it always waits for the subprocess completion, even if you set wait="false" . The above line would probably be like this:
>     if (Boolean.FALSE.equals(args.get("wait"))) wait=false;
> regards,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.