janhoy commented on a change in pull request #750: URL: https://github.com/apache/solr/pull/750#discussion_r829770160
########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp1SolrClient.java ########## @@ -0,0 +1,351 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.solr.client.solrj.impl; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.apache.http.NoHttpResponseException; +import org.apache.http.client.HttpClient; +import org.apache.http.conn.ConnectTimeoutException; +import org.apache.solr.client.solrj.request.UpdateRequest; +import org.apache.solr.common.SolrException; +import org.apache.solr.common.cloud.DocCollection; +import org.apache.solr.common.cloud.DocRouter; +import org.apache.solr.common.params.ModifiableSolrParams; +import org.apache.solr.common.util.NamedList; + +/** + * SolrJ client class to communicate with SolrCloud. Instances of this class communicate with + * Zookeeper to discover Solr endpoints for SolrCloud collections, and then use the {@link + * LBHttpSolrClient} to issue requests. + * + * @deprecated Please use {@link CloudHttp2SolrClient} Review comment: Refer users to CloudSolrClient instead? ########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp2SolrClient.java ########## @@ -34,7 +34,7 @@ * @since solr 8.0 */ @SuppressWarnings("serial") Review comment: Should CloudHttp2SolrClient be deprecated and ask users to use CloudSolrClient? Hmm, that sounds confusing for those who moved from CloudSolrClient to CloudHttp2SolrClient in 8.x :) So perhaps a point to wait closer to 10.0 to explain this dance to users.. ########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp1SolrClient.java ########## @@ -0,0 +1,351 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.solr.client.solrj.impl; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.apache.http.NoHttpResponseException; +import org.apache.http.client.HttpClient; +import org.apache.http.conn.ConnectTimeoutException; +import org.apache.solr.client.solrj.request.UpdateRequest; +import org.apache.solr.common.SolrException; +import org.apache.solr.common.cloud.DocCollection; +import org.apache.solr.common.cloud.DocRouter; +import org.apache.solr.common.params.ModifiableSolrParams; +import org.apache.solr.common.util.NamedList; + +/** + * SolrJ client class to communicate with SolrCloud. Instances of this class communicate with + * Zookeeper to discover Solr endpoints for SolrCloud collections, and then use the {@link + * LBHttpSolrClient} to issue requests. + * + * @deprecated Please use {@link CloudHttp2SolrClient} + */ +@Deprecated(since = "9.0") +public class CloudHttp1SolrClient extends CloudSolrClient { Review comment: As you also noted, *Http1* here is misleading, since CloudHttp2SolrClient is *capable* of http2, but also of http1. Have you considered `CloudApacheHttpSolrClient` or similar to point to the fact that apache-http is used? Or if we want to hint that it is using `LBHttpSolrClient` and `HttpSolrClient` under the hood, the name should be simply `CloudHttpSolrClient` for a strong name-similarity? ########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp1SolrClient.java ########## @@ -0,0 +1,351 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.solr.client.solrj.impl; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.apache.http.NoHttpResponseException; +import org.apache.http.client.HttpClient; +import org.apache.http.conn.ConnectTimeoutException; +import org.apache.solr.client.solrj.request.UpdateRequest; +import org.apache.solr.common.SolrException; +import org.apache.solr.common.cloud.DocCollection; +import org.apache.solr.common.cloud.DocRouter; +import org.apache.solr.common.params.ModifiableSolrParams; +import org.apache.solr.common.util.NamedList; + +/** + * SolrJ client class to communicate with SolrCloud. Instances of this class communicate with + * Zookeeper to discover Solr endpoints for SolrCloud collections, and then use the {@link + * LBHttpSolrClient} to issue requests. + * + * @deprecated Please use {@link CloudHttp2SolrClient} + */ +@Deprecated(since = "9.0") +public class CloudHttp1SolrClient extends CloudSolrClient { Review comment: +1 to `CloudLegacySolrClient`, and it will be deprecated anyway so then both the name and the deprecation shouts don't use me if you don't have to :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
