[ https://issues.apache.org/jira/browse/SOLR-15870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497705#comment-17497705 ]
Houston Putman commented on SOLR-15870: --------------------------------------- I have found the source of the issue. We have a SolrClient that is used during the entirety of the {{clusterStatusWithCollectionHealthState()}} method. In the middle of this method we restart a Jetty Server. The SolrClient caches connections, and sometimes does not evict the stale connection to the jetty from before it restarted, thus it gets an HTTP exception when trying to connect to that jetty server. The fix for the test is to limit the {{validateAfterInactivity}} option (in {{{}HttpClientUtil.java{}}}) to be 500 ms instead of 3000 ms. I'm not sure this is a change we want to make across the whole of SolrJ. We can instead just set that property in the unit test, but it may be useful to lower the default. I'm open to opinions here [~markrmil...@gmail.com], [~janhoy] > 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