[ https://issues.apache.org/jira/browse/SOLR-16659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849084#comment-17849084 ]
ASF subversion and git services commented on SOLR-16659: -------------------------------------------------------- Commit 4ed9f2738171d8a6a580e603913a3d3686a3aa9c in solr's branch refs/heads/branch_9x from Andrey Bozhko [ https://gitbox.apache.org/repos/asf?p=solr.git;h=4ed9f273817 ] 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: Ishan Chattopadhyaya > Priority: Minor > Time Spent: 1h 40m > 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: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org