You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Bence Szabó (Jira)" <ji...@apache.org> on 2022/11/10 15:38:00 UTC

[jira] [Commented] (SOLR-16504) Convert CLI tools to Jetty HTTP 2 client.

    [ https://issues.apache.org/jira/browse/SOLR-16504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631714#comment-17631714 ] 

Bence Szabó commented on SOLR-16504:
------------------------------------

We had a discussion on the Solr Contributor Office Hours about the question I asked here

We have checked the {{attemptHttpHead}} method and it seems like it is not a crucial part of the functionalities - it is used in only two places:
 # In one case the usage is justified because a HEAD request fails faster in case of an authorization error than the actual request itself. Having a look at the usage we found that the actual request after this is a query with rows set to 0 so we agreed that it is not a huge improvement to have this HEAD request beforehand. We could replace this usage with a descriptive exception handling so we do not have to use HEAD method at all.
 # The other use of this method is simply trying to access solr to see if it is up or not. For this use-case almost any light-weighted request is good with the proper exception handling so we agreed to replace this one as well with something else.

We came to the conclusion that if we did not need the support for http HEAD method in the SolrRequest class until now, than these should not be the use-cases which introduce it so I will work on a workaround for this method.

 

> Convert CLI tools to Jetty HTTP 2 client.
> -----------------------------------------
>
>                 Key: SOLR-16504
>                 URL: https://issues.apache.org/jira/browse/SOLR-16504
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: David Smiley
>            Priority: Major
>              Labels: newdev
>
> Affected classes: SolrCLI, ExportTool, PackageTool, SolrLogPostTool
> The aforementioned classes are in the org.apache.solr.util package and are CLI tools (have a main method, are executed outside the context of a Solr server).  These should be converted to our non-legacy Solr clients based on Jetty HttpClient.  (i.e. don't use CloudLegacySolrClient or HttpSolrClient which are based on Apache HttpClient).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org