Skip to content

Conversation

@pawankartik-elastic
Copy link
Contributor

@pawankartik-elastic pawankartik-elastic commented Mar 19, 2025

We're using skipUnavailable when looking at failures. However, we should not be looking over TaskCancelledException and more importantly, not wrap it. Fixes #108061.

@pawankartik-elastic pawankartik-elastic added >enhancement >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS v8.19.0 v9.0.1 labels Mar 19, 2025
@pawankartik-elastic pawankartik-elastic marked this pull request as ready for review March 19, 2025 13:54
@elasticsearchmachine
Copy link
Collaborator

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

}

private static boolean isTaskCancelledException(Exception e) {
static boolean isTaskCancelledException(Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would say, let's move this method to ExceptionsHelper itself, since we need to call it in more than one place. It's a little awkward for TransportSearchAction to depend on methods in AbstractSearchAsyncAction.

Copy link
Contributor

@quux00 quux00 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for catching this.

@pawankartik-elastic pawankartik-elastic merged commit 0350a48 into elastic:main Mar 19, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts
9.0

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125206

pawankartik-elastic added a commit to pawankartik-elastic/elasticsearch that referenced this pull request Mar 19, 2025
…en updating CCS info for clusters (elastic#125206)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters
@pawankartik-elastic
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

pawankartik-elastic added a commit to pawankartik-elastic/elasticsearch that referenced this pull request Mar 19, 2025
…en updating CCS info for clusters (elastic#125206)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters

(cherry picked from commit 0350a48)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Mar 19, 2025
…en updating CCS info for clusters (#125206) (#125234)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters
@pawankartik-elastic pawankartik-elastic deleted the pkar/do-not-wrap-task-cancellation branch March 19, 2025 17:54
elasticsearchmachine pushed a commit that referenced this pull request Mar 19, 2025
…res when updating CCS info for clusters (#125206) (#125237)

* Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters (#125206)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters

(cherry picked from commit 0350a48)

# Conflicts:
#	muted-tests.yml

* Fix conflict
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
…en updating CCS info for clusters (elastic#125206)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
…en updating CCS info for clusters (elastic#125206)

Do not look over `TaskCancelledException` when looking at failures when updating CCS info for clusters
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 backport pending >enhancement :Search Foundations/CCS Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] CrossClusterIT testCancel failing

3 participants