[
https://issues.apache.org/jira/browse/SOLR-18188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090739#comment-18090739
]
Chris M. Hostetter commented on SOLR-18188:
-------------------------------------------
git bisect has identified this issue as the root cause of some reproducible
jenkins failures from {{ForceLeaderTest.testReplicasInLowerTerms}} that seem to
happen on both main and 10x.
(Presumably it's also the cause of a similar increase in failures in
{{ForceLeaderWithTlogReplicasTest.testReplicasInLowerTerms}} )
Sample seed from main...
{noformat}
./gradlew -p solr/core test --tests ForceLeaderTest.testReplicasInLowerTerms
-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=hsb -Dtests.timezone=Pacific/Apia -Dtests.asserts=true
-Dtests.file.encoding=UTF-8
...
ForceLeaderTest > testReplicasInLowerTerms FAILED
org.apache.solr.common.SolrException: Cannot connect to cluster at
127.0.0.1:37719: cluster not found/not ready. Expected node 'aliases.json' does
not exist.
at
__randomizedtesting.SeedInfo.seed([A8D9D172225286EA:26EDF131E2F5269E]:0)
at
app//org.apache.solr.common.cloud.ZkStateReader.createClusterStateWatchersAndUpdate(ZkStateReader.java:594)
at
app//org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getZkStateReader(ZkClientClusterStateProvider.java:170)
at
app//org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getClusterProperty(ZkClientClusterStateProvider.java:118)
at
app//org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getUrlScheme(ZkClientClusterStateProvider.java:289)
at
app//org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:969)
at
app//org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:720)
at
app//org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:642)
at
app//org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:302)
at
app//org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:348)
at
app//org.apache.solr.cloud.AbstractFullDistribZkTestBase.lambda$createServers$0(AbstractFullDistribZkTestBase.java:394)
at
app//org.apache.solr.common.util.RetryUtil.retryOnException(RetryUtil.java:105)
at
app//org.apache.solr.common.util.RetryUtil.retryOnException(RetryUtil.java:77)
at
app//org.apache.solr.cloud.AbstractFullDistribZkTestBase.createServers(AbstractFullDistribZkTestBase.java:385)
{noformat}
>From the test logs...
{noformat}
2> 240433 INFO
(TEST-ForceLeaderTest.testReplicasInLowerTerms-seed#[A8D9D172225286EA]) []
o.a.s.c.u.RetryUtil Retry due to Exception,
org.apache.solr.common.SolrException
2> org.apache.solr.common.SolrException: Cannot connect to cluster at
127.0.0.1:37719: cluster not found/not ready. Expected node 'aliases.json' does
not exist.
2> at
org.apache.solr.common.cloud.ZkStateReader.createClusterStateWatchersAndUpdate(ZkStateReader.java:594)
2> at
org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getZkStateReader(ZkClientClusterStateProvider.java:170)
2> at
org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getClusterProperty(ZkClientClusterStateProvider.java:118)
2> at
org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getUrlScheme(ZkClientClusterStateProvider.java:289)
2> at
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:969)
2> at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:720)
2> at
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:642)
2> at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:302)
2> at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:348)
2> at
org.apache.solr.cloud.AbstractFullDistribZkTestBase.lambda$createServers$0(AbstractFullDistribZkTestBase.java:394)
2> at
org.apache.solr.common.util.RetryUtil.retryOnException(RetryUtil.java:105)
2> at
org.apache.solr.common.util.RetryUtil.retryOnException(RetryUtil.java:77)
2> at
org.apache.solr.cloud.AbstractFullDistribZkTestBase.createServers(AbstractFullDistribZkTestBase.java:385)
{noformat}
bisect logs...
{noformat}
$ git bisect log
# bad: [ecf6bfd0e35a8024016b4f157bb143ab2526594f] Update dependency
org.eclipse.jgit:org.eclipse.jgit to v7.7.0.202606012155-r (#4540)
# good: [b6abc8a1ff23c9c814c033dd7bfd53b635efc98d] SOLR-17855: Remove
metrics-annotation licenses (#4450)
git bisect start 'ecf6bfd0e35a8024016b4f157bb143ab2526594f'
'b6abc8a1ff23c9c814c033dd7bfd53b635efc98d'
# good: [de1e74298fa1e99eaf9a6802386c97da0789aee9]
DistributedCombinedQueryComponentTest hangs in nightly (#4497)
git bisect good de1e74298fa1e99eaf9a6802386c97da0789aee9
# bad: [12bf80a518ddd22870fe0d43ffc7bb1f9e81bcf5] build/RAT: bring back
exclusion of .gradle/**
git bisect bad 12bf80a518ddd22870fe0d43ffc7bb1f9e81bcf5
# good: [81599b4081c5e64156a54a6bb56ee3d7cc033ad3] SOLR-18167: Fix deprecated
sysprop migration for camelCase flags (#4507)
git bisect good 81599b4081c5e64156a54a6bb56ee3d7cc033ad3
# bad: [c7e21b0151ec72248eef90db6e945b1feb3eadda] Update netty to v4.2.15.Final
(#4411)
git bisect bad c7e21b0151ec72248eef90db6e945b1feb3eadda
# good: [454ef4b24fd63c037e08b374e6879139cf8b54f8] build/tests: tests.ssl=false
now works (#4500)
git bisect good 454ef4b24fd63c037e08b374e6879139cf8b54f8
# bad: [31405c513d39800c6147e4f31f7d79d57a88957f] SOLR-18188: Remove Apache
HttpClient usage from test infra and tests (#4451)
git bisect bad 31405c513d39800c6147e4f31f7d79d57a88957f
# first bad commit: [31405c513d39800c6147e4f31f7d79d57a88957f] SOLR-18188:
Remove Apache HttpClient usage from test infra and tests (#4451)
{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]