Skip to content

[ESQL] Skip CCQ tests when remote skipped due to connect_transport_exception#154977

Draft
hawkhuang-collab wants to merge 3 commits into
elastic:mainfrom
hawkhuang-collab:fix/ccq-skip-on-connect-transport-exception
Draft

[ESQL] Skip CCQ tests when remote skipped due to connect_transport_exception#154977
hawkhuang-collab wants to merge 3 commits into
elastic:mainfrom
hawkhuang-collab:fix/ccq-skip-on-connect-transport-exception

Conversation

@hawkhuang-collab

Copy link
Copy Markdown
Contributor

When a remote cluster is unavailable during query execution, EsqlCCSUtils returns a 200 OK with is_partial=true and the remote cluster marked status=skipped with a connect_transport_exception failure. CCQ csv-spec tests for lookup indices are particularly vulnerable because they query remote-only (no local fallback), so any transient remote outage produces an empty result set that fails the row-count assertion.

Instead of failing in assertNotPartial, detect this specific pattern and skip the test via JUnit Assume, treating it as an infrastructure flake rather than a product failure.

…ception

When a remote cluster is unavailable during query execution, EsqlCCSUtils
returns a 200 OK with is_partial=true and the remote cluster marked
status=skipped with a connect_transport_exception failure. CCQ csv-spec
tests for lookup indices are particularly vulnerable because they query
remote-only (no local fallback), so any transient remote outage produces
an empty result set that fails the row-count assertion.

Instead of failing in assertNotPartial, detect this specific pattern and
skip the test via JUnit Assume, treating it as an infrastructure flake
rather than a product failure.
@hawkhuang-collab hawkhuang-collab added >test Issues or PRs that are addressing/adding tests :Analytics/SQL SQL querying labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/SQL SQL querying >test Issues or PRs that are addressing/adding tests v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants