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

Vishnu Priya edited comment on SOLR-18056 at 2/20/26 12:45 AM:
---------------------------------------------------------------

[~dsmiley] 

Here is my proposal:

*HttpClusterStateProvider:* The url scheme is simply the protocol of one of 
configured nodes (aka solr url)
*ZkClientClusterStateProvider:* The client does not provide url protocol in the 
builder. Also ZkStateReader uses cluster property to know the url scheme. I'm 
not sure what's the right way to get the url scheme without using cluster 
property (This [ticket|https://issues.apache.org/jira/browse/SOLR-18055] 
recommends to depend on SOLR_SSL_ENABLED property. I believe this property is 
set in the Solr instance/cluster and it is not possible for SolrClient to be 
aware of server side setting). 
 


was (Author: JIRAUSER308206):
[~dsmiley] 

Here is my proposal:

*HttpClusterStateProvider:* The url scheme is simply the protocol of one of 
configured nodes (aka solr url)
*ZkClientClusterStateProvider:* The client does not provide url protocol in the 
builder. Also ZkStateReader uses cluster property to know the url scheme. I'm 
not sure what's the right way to get the url scheme without using cluster 
property (This ticket recommends to depend on SOLR_SSL_ENABLED property. I 
believe this property is set in the Solr instance/cluster and it is not 
possible for SolrClient to be aware of server side setting). 
 

> HttpClusterStateProvider; use urlScheme from initial quorum
> -----------------------------------------------------------
>
>                 Key: SOLR-18056
>                 URL: https://issues.apache.org/jira/browse/SOLR-18056
>             Project: Solr
>          Issue Type: Improvement
>          Components: security, SolrJ
>            Reporter: David Smiley
>            Priority: Major
>              Labels: newdev
>
> Refactor ClusterStateProvider to have a method to get the urlScheme in the 
> way CloudSolrClient requests it today.  Then improve HttpClusterStateProvider 
> to use the scheme from the quorum nodes that were provided instead of from 
> cluster props.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to