Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMBARI-24040. Infra Solr start/stop should be idempotent. #1473

Merged
merged 2 commits into from Jun 6, 2018

Conversation

oleewere
Copy link
Contributor

@oleewere oleewere commented Jun 5, 2018

What changes were proposed in this pull request?

I can send a START or STOP batch command with the Rest API to Infra Solr (which is already running, or already stopped), in that case the START command could fail. (STOP is not, but i can call solr stop directly without the condition as it returs with exit code 0 if the process is already running, it is even checking the process status if the pid file does not exist by grepping the used jetty port)

How was this patch tested?

UTs passed

Please review @adoroszlai @g-boros @kasakrisz @swagle

@oleewere oleewere self-assigned this Jun 5, 2018
@asfgit
Copy link

asfgit commented Jun 5, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2608/
Test PASSed.

@asfgit
Copy link

asfgit commented Jun 5, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2609/
Test PASSed.

@oleewere oleewere merged commit 2727730 into apache:trunk Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants