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

wrong solr ping URL #34

Closed
rocket-turtle opened this issue Feb 2, 2018 · 0 comments
Closed

wrong solr ping URL #34

rocket-turtle opened this issue Feb 2, 2018 · 0 comments

Comments

@rocket-turtle
Copy link

With c4ee8e0 the Ping URL changed from /admin/ping back to /ping

[2] pry(SunspotTest)> Net::HTTP.get_response(URI.parse("#{Sunspot.session.config.solr.url}/admin/ping"))
=> #<Net::HTTPOK 200 OK readbody=true>
[3] pry(SunspotTest)> Net::HTTP.get_response(URI.parse("#{Sunspot.session.config.solr.url}/ping"))
=> #<Net::HTTPNotFound 404 Not Found readbody=true>

They both somehow work put /admin/ping is the correct ping URL and is also used by sunspot

https://github.com/sunspot/sunspot/blob/master/ci/travis.sh#L9

solr_responding() {
  port=$1
  curl -o /dev/null "http://localhost:$port/solr/admin/ping" > /dev/null 2>&1
}

https://lucene.apache.org/solr/4_2_0/solr-core/org/apache/solr/handler/PingRequestHandler.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant