Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CrossClusterEsqlRCSEnrichUnavailableRemotesIT failing tests #119977

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

quux00
Copy link
Contributor

@quux00 quux00 commented Jan 10, 2025

Fixes #119910

@quux00 quux00 added >non-issue auto-backport Automatically create backport pull requests when merged Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS v9.0.0 v8.18.0 v8.17.2 labels Jan 10, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@quux00 quux00 force-pushed the test-fix/CrossClusterEsqlRCSEnrichUnavailableRemotesIT branch from 43ec53f to 4c78cef Compare January 10, 2025 17:51
@pawankartik-elastic
Copy link
Contributor

I have a question: is there a reason why this test failure occurs only on Windows? I tried to get this issue to reproduce this on a Windows machine but couldn't, even with the same seed.

@@ -185,8 +187,7 @@ private void esqlEnrichWithSkipUnavailableTrue() throws Exception {
Map<String, ?> failuresMap = (Map<String, ?>) remoteClusterFailures.get(0);

Map<String, ?> reason = (Map<String, ?>) failuresMap.get("reason");
assertThat(reason.get("type").toString(), equalTo("connect_transport_exception"));
assertThat(reason.get("reason").toString(), containsString("Unable to connect to [my_remote_cluster]"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we could keep the check that the error message mentions my_remote_cluster (if that's the case) maybe without requiring all other stuff to match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since I'm not able to reproduce the failure, I'm hesitant to do that. We don't control what error messages come from the underlying transport layer, so testing for that doesn't test for anything we can change. The error message will be whatever the transport layer decides it wants it to be depending on what exact sequence of transport issues happened (and there can be many different errors from disconnected clusters). The key point of this test is that it reports some sort of disconnected/transport error rather than an ESQL verification exception which is what it was doing before Pawan's fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >non-issue :Search Foundations/CCS Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.17.2 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] CrossClusterEsqlRCS2EnrichUnavailableRemotesIT testEsqlEnrichWithSkipUnavailable failing
4 participants