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

Christine Poerschke commented on SOLR-14442:
--------------------------------------------

Here's the commands I used to test the {{bin/solr}} changes.
 * First terminal:
{code:java}
cd solr

ant dist server

bin/solr start -e techproducts -noprompt

bin/solr stop
{code}

 * Second terminal:
{code:java}
curl 
'http://localhost:8983/solr/techproducts/select?fl=id,popularity,score&defType=func&q=add(popularity,0)'

curl 
'http://localhost:8983/solr/techproducts/select?fl=id,popularity,score&defType=func&q=add(popularity,sleep(1000,0))'

curl 
'http://localhost:8983/solr/techproducts/select?fl=id,popularity,score&defType=func&q=add(popularity,sleep(234000,0))'
{code}

The last query with the sleep command needs to be run before the stop command 
is issued and the sleep needs to be long enough to make the instance stopping 
untimely i.e. the script waits for SOLR_STOP_WAIT of 180s and the first sleep 
parameter looks to be milliseconds i.e. 234000 is 234s which is plenty over the 
180s limit.

> bin/solr to attempt jstack before killing hung Solr instance
> ------------------------------------------------------------
>
>                 Key: SOLR-14442
>                 URL: https://issues.apache.org/jira/browse/SOLR-14442
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-14442.patch
>
>
> If a Solr instance did not respond to the 'stop' command in a timely manner 
> then the {{bin/solr}} script will attempt to forcefully kill it: 
> [https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.5.1/solr/bin/solr#L859]
> Gathering of information (e.g. a jstack of the java process) before the kill 
> command may be helpful in determining why the instance did not stop as 
> expected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to