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

Christine Poerschke updated SOLR-11740:
---------------------------------------
    Attachment: SOLR-11740.patch

Thanks everyone for noticing and looking into this! Yes, looks like SOLR-9137 
broke this i.e. the first instance is stopped successfully and then the 'local' 
STOP_PORT variable carries over to the stopping of subsequent instances which 
naturally won't work.

Attached patch for {{bin/solr}} avoids this by giving the local variable 
another name, perhaps there is a different way to achieve the equivalent? Will 
try and figure out the {{bin/solr.cmd}} equivalent next.


> bin/solr stop command always throws Connection refused
> ------------------------------------------------------
>
>                 Key: SOLR-11740
>                 URL: https://issues.apache.org/jira/browse/SOLR-11740
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Varun Thacker
>            Assignee: Christine Poerschke
>            Priority: Blocker
>             Fix For: 7.2, master (8.0)
>
>         Attachments: SOLR-11740.patch
>
>
> Start solr using {{./bin/solr start -e cloud -noprompt}} and then try 
> stopping it. I ran into this problem every time I stopping solr on master. 
> I'm using Java9 and it works fine on Solr 7.1 ( haven't checked on the 7_2 
> branch yet )
> [master] ~/apache-work/lucene-solr/solr$ ./bin/solr  stop -all
> Sending stop command to Solr running on port 7574 ... waiting up to 180 
> seconds to allow Jetty process 40360 to stop gracefully.
> Sending stop command to Solr running on port 8983 ... waiting up to 180 
> seconds to allow Jetty process 40263 to stop gracefully.
> java.net.ConnectException: Connection refused (Connection refused)
>       at java.net.PlainSocketImpl.socketConnect(Native Method)
>       at 
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>       at 
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>       at 
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>       at java.net.Socket.connect(Socket.java:589)
>       at java.net.Socket.connect(Socket.java:538)
>       at java.net.Socket.<init>(Socket.java:434)
>       at java.net.Socket.<init>(Socket.java:244)
>       at org.eclipse.jetty.start.Main.stop(Main.java:535)
>       at org.eclipse.jetty.start.Main.stop(Main.java:511)
>       at org.eclipse.jetty.start.Main.doStop(Main.java:499)
>       at org.eclipse.jetty.start.Main.start(Main.java:404)
>       at org.eclipse.jetty.start.Main.main(Main.java:76)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to