Skip to content

SOLR-18188: httpClient is left open causing flaky nightly o.a.s.cloud.ChaosMonkeyNothingIsSafeTest - #4709

Open
epugh wants to merge 1 commit into
apache:mainfrom
epugh:SOLR-18188-flaky-test
Open

SOLR-18188: httpClient is left open causing flaky nightly o.a.s.cloud.ChaosMonkeyNothingIsSafeTest#4709
epugh wants to merge 1 commit into
apache:mainfrom
epugh:SOLR-18188-flaky-test

Conversation

@epugh

@epugh epugh commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

https://issues.apache.org/jira/browse/SOLR-18188

Description

I noticed that the nightly main builds on jenkins have been failing for a bit: https://ci-builds.apache.org/job/Solr/job/Solr-NightlyTests-main/1878/

I looked and saw two tests. I asked Claude to dig in, and it came back the work in SOLR-18188 as the probably cause. Did some testing, and here is what makes a reproducible failure on main, and a fix on this branch:

./gradlew :solr:core:test --tests "org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest"
-Ptests.nightly=true -Ptests.seed=DEAD00000000004 --rerun-tasks

-Ptests.seed=DEAD00000000004 and DEAD00000000005 are seeds that draw runFullThrottle=true and reliably reproduce the HttpJettySolrClient leak without the fix. With the fix applied, both pass. Seeds that draw runFullThrottle=false (e.g. DEAD00000000001) pass either way, so use one of the two seeds above to exercise the affected path.

Solution

Claude and I looked and he recommended this IOUtils.closeQuietly.

Tests

Ran the failing test on branch, it passes, on main, it fails.

@epugh
epugh requested a review from dsmiley August 4, 2026 23:00
@epugh epugh changed the title SOLR-18188: httpClient is left open causing flaky nightly o.a.s.cloud.ChaosMonkekNothingIsSafeTest SOLR-18188: httpClient is left open causing flaky nightly o.a.s.cloud.ChaosMonkeyNothingIsSafeTest Aug 4, 2026

@dsmiley dsmiley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice & simple!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants