Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Backports the following commits to 7.17:

In elastic#72157 we made it so that cancelling the task that a
`TransportMasterNodeAction` was executing causes the action to fail with
a `java.util.concurrent.CancellationException`. This exception is
treated as a `500 Internal Server Error` which results in `WARN`-level
logs, but cancelling a task is normal and expected behaviour and should
not be logged (see elastic#73524).

This commit fixes this by using a `TaskCancelledException` instead,
since this exception maps to a `400 Bad Request` and generates no logs.
@DaveCTurner DaveCTurner added :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. labels May 11, 2022
@elasticsearchmachine elasticsearchmachine merged commit 9c9121f into elastic:7.17 May 11, 2022
@DaveCTurner DaveCTurner deleted the backport/7.17/pr-86659 branch May 11, 2022 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.17.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants