You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Ishan Chattopadhyaya (Jira)" <ji...@apache.org> on 2023/02/15 17:58:00 UTC
[jira] [Commented] (SOLR-16659) DistribPackageStore.distribute may alter node name
[ https://issues.apache.org/jira/browse/SOLR-16659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689284#comment-17689284 ]
Ishan Chattopadhyaya commented on SOLR-16659:
---------------------------------------------
Good catch, thanks. Would you like to open a PR or submit a patch for fixing this?
> DistribPackageStore.distribute may alter node name
> --------------------------------------------------
>
> Key: SOLR-16659
> URL: https://issues.apache.org/jira/browse/SOLR-16659
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Package Manager
> Affects Versions: 9.1.1
> Reporter: def onion
> Assignee: Ishan Chattopadhyaya
> Priority: Minor
>
> This bug occurs when using the package manager in solr cloud mode with solr nodes that have a node name starting with "solr".
> The [distribute |https://github.com/apache/solr/blob/08e4591fd7f6f92c3dc42b4b1f334a960358fa4e/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.java#L365]method in the DistribPackageStore alters the URL of the solr nodes by replacing the string "/solr" with "/api". This can lead to wrong host names of solr nodes, e.g. "http://solr-2.solrcluster:8983" is changed to "http://api-2.solrcluster:8983":
> {code:java}
> 2023-02-15 09:34:29.049 ERROR (qtp35984028-19) [] o.a.s.c.u.Utils Error in request to url : http://api-2.solrcluster:8983/api/node/files/_trusted_/keys/store-key?getFrom=solr-0.solrcluster:8983_solr => java.net.UnknownHostException: api-2.solrcluster
> at java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source) {code}
--
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