Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: deprecated
title: Deprecate PingRequestHandler (the "/admin/ping" endpoint), SolrPing, SolrPingResponse, and SolrClient.ping()/ping(String).
authors:
- name: Jason Gerlowski
links:
- name: SOLR-18417
url: https://issues.apache.org/jira/browse/SOLR-18417
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@
* healthcheck file exists ("<code>enabled</code>") or not ("<code>disabled</code>")
* </ul>
*
* @deprecated This handler is deprecated and will be removed in a future release. For load balancer
* or orchestration health checks, use {@link org.apache.solr.handler.admin.HealthCheckHandler}
* instead. instead.
* @since solr 1.3
*/
@Deprecated(since = "10.1")
public class PingRequestHandler extends RequestHandlerBase implements SolrCoreAware {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ This handler must have a collection name in the path to the endpoint.
Ping:: Health check.
This handler must have a collection name in the path to the endpoint.
+
CAUTION: `PingRequestHandler` is deprecated and will be removed in a future release. Use the `Health` endpoint below instead.
+
*Documentation*: xref:deployment-guide:ping.adoc[]
+
[cols="3*.",frame=none,grid=cols,options="header"]
Expand Down
6 changes: 6 additions & 0 deletions solr/solr-ref-guide/modules/deployment-guide/pages/ping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
// specific language governing permissions and limitations
// under the License.

[WARNING]
====
The `/admin/ping` endpoint (`PingRequestHandler`) is deprecated and will be removed in a future release.
For load balancer or orchestration health checks, use the `solr/admin/info/health` (v1) or `api/node/health` (v2) endpoint, documented in the "Health" section of xref:configuration-guide:implicit-requesthandlers.adoc[], instead.
====

Choosing Ping under a core name issues a `ping` request to check whether the core is up and responding to requests.

.Ping Option in Core Dropdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,9 @@ public UpdateResponse deleteByQuery(String query, int commitWithinMs)
* response from the server
* @throws IOException If there is a low-level I/O error.
* @throws SolrServerException if there is an error on the server
* @deprecated This method is deprecated and will be removed in a future release.
*/
@Deprecated(since = "10.1")
public SolrPingResponse ping(String collection) throws SolrServerException, IOException {
return new SolrPing().process(this, collection);
}
Expand All @@ -907,7 +909,9 @@ public SolrPingResponse ping(String collection) throws SolrServerException, IOEx
* response from the server
* @throws IOException If there is a low-level I/O error.
* @throws SolrServerException if there is an error on the server
* @deprecated This method is deprecated and will be removed in a future release.
*/
@Deprecated(since = "10.1")
public SolrPingResponse ping() throws SolrServerException, IOException {
return new SolrPing().process(this, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* org.apache.solr.client.solrj.SolrClient}. To use this class, the solrconfig.xml for the relevant
* core must include the request handler for <code>/admin/ping</code>.
*
* @deprecated <code>PingRequestHandler</code> (the <code>/admin/ping</code> endpoint) is deprecated
* and will be removed in a future release. Use {@link HealthCheckRequest} instead.
* @since solr 1.3
*/
@Deprecated(since = "10.1")
public class SolrPing extends CollectionRequiringSolrRequest<SolrPingResponse> {

/** serialVersionUID. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
package org.apache.solr.client.solrj.response;

/**
* @deprecated This class is deprecated and will be removed in a future release.
* @since solr 1.3
*/
@Deprecated(since = "10.1")
public class SolrPingResponse extends SolrResponseBase {
// nothing special now...
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ public interface CommonParams {
String INDENT = "indent";

// SOLR-4228 start
/** handler value for SolrPing */
/**
* handler value for SolrPing
*
* @deprecated <code>PingRequestHandler</code> (the <code>/admin/ping</code> endpoint) is
* deprecated and will be removed in a future release.
*/
@Deprecated(since = "10.1")
String PING_HANDLER = "/admin/ping";

/** "action" parameter for SolrPing */
Expand Down
Loading