solr icon indicating copy to clipboard operation
solr copied to clipboard

SOLR-15469: start/stop script fails on multiple instances

Open piuma opened this issue 4 years ago • 5 comments

https://issues.apache.org/jira/browse/SOLR-15469

Description

When more instances of solr run on the same machine. The bash script solr fail to get correct pid of process. This cause problems to get status information or when stop/restart solr instance.

In optical to use solr like a cluster service this is essential for the cluster to know the healt of service.

Solution

I used $SOLR_HOME in grep expression to recognize the right process on which you want to operate.

piuma avatar Jun 10 '21 09:06 piuma

@piuma Are there similar changes that we can should make for the windows side of things?

madrob avatar Jun 10 '21 16:06 madrob

@madrob I don't know because I don't use windows, sorry.

piuma avatar Jun 11 '21 13:06 piuma

This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the [email protected] mailing list. Thank you for your contribution!

github-actions[bot] avatar Feb 25 '24 00:02 github-actions[bot]

@piuma I would be interested in picking this back up if you could contribute a BATS test demonstrating the error first. That would make verifying the fix a lot easier ;-). Take a look at https://github.com/apache/solr/blob/main/solr/packaging/test/test_start_solr.bats.

epugh avatar Feb 26 '24 13:02 epugh

This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the [email protected] mailing list. Thank you for your contribution!

github-actions[bot] avatar May 06 '24 00:05 github-actions[bot]

Longer term, we want to rethink how our start and stop commands are managed. There is definitly better ways of handling them, including moving more shared logic into Java code from the windows/shell scripts, and thinking through situations like this one. I'm going to close this PR for now.

epugh avatar Aug 16 '24 10:08 epugh