Skip to content

SOLR-18417: Remove PingRequestHandler and related code - #4874

Open
gerlowskija wants to merge 4 commits into
apache:mainfrom
gerlowskija:SOLR-18417-remove-prh-code-2
Open

SOLR-18417: Remove PingRequestHandler and related code#4874
gerlowskija wants to merge 4 commits into
apache:mainfrom
gerlowskija:SOLR-18417-remove-prh-code-2

Conversation

@gerlowskija

Copy link
Copy Markdown
Contributor

Removes PingRequestHandler, SolrPing, SolrPingResponse,
SolrClient.ping(), and various related constants. This follows their
deprecation in Solr 10.1.

(This PR requires the as-yet-unmerged #4872, and will be left as
a draft until it is merged. See that PR for more discussion around
the deprecation/removal of this functionality.)

PingRequestHandler has largely been superseded by HealthcheckHandler (or
even SystemInfoHandler) which do healthchecks at the node-level instead
and tend to be much more compatible with typical load balancers.

This commit deprecates PingRequestHandler and the corresponding SolrPing
class in SolrJ.  Removal will occur in a subsequent ('main'-only)
commit.
Removes PingRequestHandler, SolrPing, SolrPingResponse,
SolrClient.ping(), and various related constants.  This follows their
deprecation in Solr 10.1.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the change that I am sad about, that all our content, if I understand it right, on monitoring was in this page, and we lose that. We don't have the equivalent of healthcheck.adoc...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I went ahead and put a page togther, would love your feedback: #4886

It's meant to be merged after this PR is merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking that on, I've put some review comments on your PR!

@epugh

epugh commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

by the way, solr/webapp/web/css/angular/dashboard.css still has #healthcheck/.ico/.ico-1 selector rules that this PR doesn't touch — they'll become dead CSS once the HTML that used them is deleted.

@gerlowskija
gerlowskija marked this pull request as ready for review September 8, 2026 12:58
@gerlowskija

Copy link
Copy Markdown
Contributor Author

they'll become dead CSS once the HTML that used them is deleted

Meaning that this PR should remove those CSS bits, right? Happy to do that, just confirming.

Extremely low value given how infrequently the (old) Admin UI gets edited, but I wonder if there's some sort of lint-check we could add to catch this...

@epugh

epugh commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

they'll become dead CSS once the HTML that used them is deleted

Meaning that this PR should remove those CSS bits, right? Happy to do that, just confirming.

Extremely low value given how infrequently the (old) Admin UI gets edited, but I wonder if there's some sort of lint-check we could add to catch this...

I used this linter: "Claude, tell me what Jason is getting wrong in this PR" ;-). Just kidding..... "Can you review this PR and run /simplify and /code-review --medium" and it found that issue.

@epugh

epugh commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

I shold probably have just done it an dpushed up the change......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants