Skip to content

Conversation

@drempapis
Copy link
Contributor

The failing test introduces network disruptions to verify search behavior under disconnect scenarios. To improve stability, I introduced a short Thread.sleep(300) (milliseconds) after each disruption, to give ES time to release resources and fully reconcile the cluster state. Additionally, I reduced some configuration values by an order of magnitude to make the test execute faster while preserving its effectiveness and coverage.

This fix aims to address intermittent resource leak warnings. It's best to validate the change in CI, and let the test reopen automatically if the issue reoccurs.

Closes #122707

@drempapis drempapis added >test-failure Triaged test failures from CI Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations v9.2.0 labels Jul 4, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine added the needs:risk Requires assignment of a risk label (low, medium, blocker) label Jul 4, 2025
@drempapis drempapis removed the needs:risk Requires assignment of a risk label (low, medium, blocker) label Jul 4, 2025
@elasticsearchmachine elasticsearchmachine added the needs:risk Requires assignment of a risk label (low, medium, blocker) label Jul 4, 2025
@drempapis drempapis added >non-issue and removed >test-failure Triaged test failures from CI needs:risk Requires assignment of a risk label (low, medium, blocker) labels Jul 4, 2025
@javanna
Copy link
Member

javanna commented Jul 4, 2025

Hey, I don't think adding Thread.sleep is a good direction. It will only contribute to the tech debt around fixing these tests that rely on timing. I have not looked closely enough to the test to offer an alternate solution yet, but I wanted to raise that I think we should look deeper at the test and see where it relies on timing and what we can do to address that. Thanks for looking into it!

@drempapis drempapis closed this Jul 4, 2025
elasticsearchmachine pushed a commit that referenced this pull request Jul 4, 2025
Backports the following commits to 9.1:  - Unmute SearchWithRejectionsIT
testOpenContextsAfterRejections (#130628)
@javanna javanna removed the v9.2.0 label Jul 4, 2025
@drempapis
Copy link
Contributor Author

Thank you, @javanna, for the feedback. You're right, I'll reiterate this test failure

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

Labels

>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] SearchWithRandomDisconnectsIT testSearchWithRandomDisconnects failing

3 participants