You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Danny Shih (JIRA)" <ji...@apache.org> on 2018/08/24 18:33:00 UTC

[jira] [Commented] (SOLR-9698) Fix bin/solr script calculations - start/stop wait time and RMI_PORT on Windows

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

Danny Shih commented on SOLR-9698:
----------------------------------

When run in a non-interactive context, the "timeout" command produces this error:

{{"ERROR: Input redirection is not supported, exiting the process immediately."}}

I work on a product where we call out to solr.cmd from a java control application to start/stop SOLR, and this breaks us.  It'd be good if you could replace the "timeout" command with something else. One slightly hacky solution that is suggested all over the internet is to use the "ping" command on an unreachable address:

{{PING 1.1.1.1 -n 30 >NUL (to wait for 30 s)}}

 

> Fix bin/solr script calculations - start/stop wait time and RMI_PORT on Windows
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-9698
>                 URL: https://issues.apache.org/jira/browse/SOLR-9698
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>            Reporter: Erick Erickson
>            Priority: Major
>
> Killing the Solr process after 5 seconds is too harsh. See the discussion at SOLR-9371.
> SOLR-9371 fixes the *nix versions, we need to do something similar for Windows.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org