[ 
https://issues.apache.org/jira/browse/SOLR-15870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499000#comment-17499000
 ] 

ASF subversion and git services commented on SOLR-15870:
--------------------------------------------------------

Commit 36fd50cd09a9006cc23b88066e21a4bee66a7f52 in solr's branch 
refs/heads/branch_9x from Houston Putman
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=36fd50c ]

SOLR-15870: Fix TestCollectionAPI HTTP error

The error occured because the test was using a single client
to issue Admin commands before and after a server was restarted.
The HTTP Client caches connections, and didn't evict the expired
connection to the server after it restarted. SolrJ does not attempt to
retry Admin calls, therefore the test failed whenever the stale
connection was used.

(cherry picked from commit c57345b1293ba1a623a53415e4adc93104d99e9c)


> Test TestCollectionAPI fails frequently
> ---------------------------------------
>
>                 Key: SOLR-15870
>                 URL: https://issues.apache.org/jira/browse/SOLR-15870
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>    Affects Versions: 9.0
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: 9.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Sample failure
> Build: https://ci-builds.apache.org/job/Solr/job/Solr-Check-main/2376/
> {code:java}
> 1 tests failed.
> FAILED:  org.apache.solr.cloud.api.collections.TestCollectionAPI.test
> Error Message:
> java.lang.AssertionError: collection health should not be GREEN
> Stack Trace:
> java.lang.AssertionError: collection health should not be GREEN
>       at 
> __randomizedtesting.SeedInfo.seed([2761A750818CC788:AF35988A2F70AA70]:0)
>       at org.junit.Assert.fail(Assert.java:89)
>       at org.junit.Assert.assertTrue(Assert.java:42)
>       at org.junit.Assert.assertFalse(Assert.java:65)
>       at 
> org.apache.solr.cloud.api.collections.TestCollectionAPI.clusterStatusWithCollectionHealthState(TestCollectionAPI.java:362)
>       at 
> org.apache.solr.cloud.api.collections.TestCollectionAPI.test(TestCollectionAPI.java:96)
>  {code}
> Also see graph at 
> http://fucit.org/solr-jenkins-reports/history-trend-of-recent-failures.html#series/org.apache.solr.cloud.api.collections.TestCollectionAPI.test
> Ping [~ab]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to