def onion created SOLR-16659:
--------------------------------
Summary: 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
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]