[
https://issues.apache.org/jira/browse/SOLR-18188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090748#comment-18090748
]
Chris M. Hostetter commented on SOLR-18188:
-------------------------------------------
LIkewise, bisect identified this issue as the cause of failures in
{{ShardSplitTest}}
(I tested {{ShardSplitTest.testSplitStaticIndexReplication}} but the logs show
the same types of exceptions from
{{ShardSplitTest.testSplitStaticIndexReplicationLink}} ...
{noformat}
./gradlew -p solr/core test --tests
ShardSplitTest.testSplitStaticIndexReplication -Dtests.seed=A8D9D172225286EA
-Dtests.nightly=true
-Dtests.linedocsfile=/home/jenkins/jenkins-agent/workspace/Solr/Solr-NightlyTests-main/test-data/enwiki.random.lines.txt
-Dtests.locale=ru-UA -Dtests.timezone=AET -Dtests.asserts=true
-Dtests.file.encoding=UTF-8
ShardSplitTest > testSplitStaticIndexReplication FAILED
java.lang.ClassCastException: class
org.apache.solr.client.solrj.impl.CloudHttp2SolrClient cannot be cast to class
org.apache.solr.client.solrj.jetty.CloudJettySolrClient
(org.apache.solr.client.solrj.impl.CloudHttp2SolrClient and
org.apache.solr.client.solrj.jetty.CloudJettySolrClient are in unnamed module
of loader 'app')
at
__randomizedtesting.SeedInfo.seed([A8D9D172225286EA:E2934572B3FAA9EF]:0)
at
org.apache.solr.cloud.api.collections.ShardSplitTest.doSplitStaticIndexReplication(ShardSplitTest.java:159)
at
org.apache.solr.cloud.api.collections.ShardSplitTest.testSplitStaticIndexReplication(ShardSplitTest.java:123)
{noformat}
> solr-test-framework: Remove Apache HttpClient usages
> ----------------------------------------------------
>
> Key: SOLR-18188
> URL: https://issues.apache.org/jira/browse/SOLR-18188
> Project: Solr
> Issue Type: Task
> Components: test-framework, Tests
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.1
>
> Time Spent: 6h 50m
> Remaining Estimate: 0h
>
> As of this writing, the last usages of Apache HttpClient are in Solr's tests.
> This issue aims to remove it completely. But it's a lot of work.
> Some possible steps:
> * Remove tests for our HttpSolrClient & friends (fundamentally based on
> Apache HttpClient)
> * Replace usages of HttpSolrClient.getHttpClient with
> HttpJettySolrClient.getHttpClient
> * Replace usages of HttpSolrClient.getBaseURL by introducing a new base
> client that has this method. Or access similarly from Jetty when easily
> available.
> * of course, stop using HttpSolrClient & friends. Maybe class-by-class.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]