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

SolrHealthIndicator reports down when baseUrl references a core instead of the root context #16477

Closed
wants to merge 4 commits into from
Closed

SolrHealthIndicator reports down when baseUrl references a core instead of the root context #16477

wants to merge 4 commits into from

Conversation

schuch
Copy link
Contributor

@schuch schuch commented Apr 6, 2019

Added heuristic approach to fallback to SolrPing if CoreAdmin request returns a 404 which might indicate the SolrClient's baseUrl points to a particular core

Fixes gh-16256

@pivotal-issuemaster
Copy link

@schuch Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@schuch schuch marked this pull request as ready for review April 6, 2019 15:07
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 6, 2019
@pivotal-issuemaster
Copy link

@schuch Thank you for signing the Contributor License Agreement!

@schuch schuch changed the title Fallback to SolrPing for health check when CoreAdmin request is not possible Apr 7, 2019
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 19, 2019
@snicoll snicoll added this to the 2.1.x milestone Jul 19, 2019
@philwebb philwebb changed the title Fallback to SolrPing for health check when CoreAdmin request is not possible SolrHealthIndicator reports solr down when solr client baseUrl references a core instead of the root context Sep 3, 2019
@philwebb philwebb changed the title SolrHealthIndicator reports solr down when solr client baseUrl references a core instead of the root context SolrHealthIndicator reports down when baseUrl references a core instead of the root context Sep 3, 2019
philwebb pushed a commit that referenced this pull request Sep 3, 2019
Update `SolrHealthIndicator` to fallback to a basic ping operation if
the `baseUrl` references a particular core rather than the root context.

Prior to this commit, if the Solr `baseUrl` pointed to a particular
core then the health indicator would incorrectly report `DOWN`.

See gh-16477
philwebb added a commit that referenced this pull request Sep 3, 2019
@philwebb philwebb closed this in f79dad6 Sep 3, 2019
@philwebb philwebb modified the milestones: 2.1.x, 2.1.8 Sep 3, 2019
@schuch schuch deleted the gh-16256-solrhealthindicator-for-baseurls-with-core branch November 9, 2019 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spring-boot-actuator solr health indicator reports solr down when solr client baseUrl contains core
5 participants