[
https://issues.apache.org/jira/browse/SOLR-16659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851502#comment-17851502
]
ASF subversion and git services commented on SOLR-16659:
--------------------------------------------------------
Commit 8bbfbdbc46925a98a6bad53df5ee32f2b48e29af in solr's branch
refs/heads/jira/17134 from Andrey Bozhko
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=8bbfbdbc469 ]
SOLR-16659: Properly construct V2 base urls instead of replacing substring
"/solr" with "/api" (#2473)
Refactoring and clean up on how to craft URLS that are V2 from V1 sources.
> DistribPackageStore.distribute may alter node name
> --------------------------------------------------
>
> Key: SOLR-16659
> URL: https://issues.apache.org/jira/browse/SOLR-16659
> Project: Solr
> Issue Type: Bug
> Components: Package Manager
> Affects Versions: 9.1.1
> Reporter: def onion
> Assignee: Eric Pugh
> Priority: Minor
> Fix For: main (10.0), 9.7
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]