[
https://issues.apache.org/jira/browse/SOLR-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888821#comment-13888821
]
Steve Davids commented on SOLR-3854:
------------------------------------
I believe the RecoveryStrategy was complaining (among others) as it reads the
URL directly from ZooKeeper:
{code}
String leaderBaseUrl = leaderprops.getStr(ZkStateReader.BASE_URL_PROP);
String leaderCoreName = leaderprops.getStr(ZkStateReader.CORE_NAME_PROP);
String leaderUrl = ZkCoreNodeProps.getCoreUrl(leaderBaseUrl, leaderCoreName);
{code}
This same concept is in CloudSolrServer:
{code}
ZkCoreNodeProps zkProps = new ZkCoreNodeProps(leader);
String url = zkProps.getBaseUrl() + "/" + col.getName();
{code}
CloudSolrServer would need to be updated as well to allow a configurable URL
scheme as there isn't a configured HttpShardHandler to grab the value.
I believe it is somewhat reasonable to have each node report the scheme that is
able to be used to connect to that specific server, more so for external
clients that would like to use the base_url value as reported in zookeeper.
Though I do see why needing to configure the url scheme in two different
locations isn't optimal, I think it is a little strange that HttpShardHandler
throws away the scheme of all passed URLs and inserts it's scheme. How about
the HttpShardHandler not strip the schemes off unless a scheme was
*specifically* configured, if that was the case then only the "hostProtocol"
would need to be configured.
> SolrCloud does not work with https
> ----------------------------------
>
> Key: SOLR-3854
> URL: https://issues.apache.org/jira/browse/SOLR-3854
> Project: Solr
> Issue Type: Bug
> Reporter: Sami Siren
> Assignee: Mark Miller
> Fix For: 5.0, 4.7
>
> Attachments: SOLR-3854.patch, SOLR-3854.patch, SOLR-3854.patch,
> SOLR-3854.patch, SOLR-3854.patch
>
>
> There are a few places in current codebase that assume http is used. This
> prevents using https when running solr in cloud mode.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]