Skip to content

Conversation

@pawankartik-elastic
Copy link
Contributor

I was able to reproduce the flaky-ness and the changes in this PR seem to have fixed the flaky-ness.

Without these changes = failures seen when running the tests for multiple iterations.
With these changes = no failures when running the tests for multiple iterations (100+ iterations).

Hopefully, fixes #131656 and #132179.

@pawankartik-elastic pawankartik-elastic added >test Issues or PRs that are addressing/adding tests :Search Foundations/Search Catch all for Search Foundations :Search Foundations/CCS v9.2.0 labels Aug 11, 2025
@pawankartik-elastic pawankartik-elastic marked this pull request as ready for review August 11, 2025 13:40
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Aug 11, 2025
@elasticsearchmachine
Copy link
Collaborator

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

);
for (String remoteNodeName : cluster(LINKED_CLUSTER_1).getNodeNames()) {
TransportService remoteTs = cluster(LINKED_CLUSTER_1).getInstance(TransportService.class, remoteNodeName);
localMts.addConnectBehavior(remoteTs, ((transport, discoveryNode, profile, listener) -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand well, the updated code blocks all remote targets per local node, making the timeout behavior-assertions reliable.

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you Pawan

@pawankartik-elastic pawankartik-elastic merged commit ccb721b into elastic:main Aug 11, 2025
34 checks passed
@pawankartik-elastic pawankartik-elastic deleted the pkar/force-connect-test-fix branch August 11, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Foundations/CCS :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] RemoteSearchForceConnectTimeoutIT testTimeoutSetting failing

3 participants