Skip to content

Improve cancellation in repo analysis#101213

Merged
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2023/10/23/repo-analysis-cancellation
Oct 24, 2023
Merged

Improve cancellation in repo analysis#101213
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2023/10/23/repo-analysis-cancellation

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Today we rely on an isRunning check to check for task cancellation,
but since #82685 we can actively record the failure arising from the
cancellation using a CancellationListener.

Closes #101197

Today we rely on an `isRunning` check to check for task cancellation,
but since elastic#82685 we can actively record the failure arising from the
cancellation using a `CancellationListener`.

Closes elastic#101197
@DaveCTurner DaveCTurner added >non-issue :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.12.0 labels Oct 23, 2023
@DaveCTurner DaveCTurner requested a review from ywangd October 23, 2023 13:33
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Oct 23, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit b714549 into elastic:main Oct 24, 2023
@DaveCTurner DaveCTurner deleted the 2023/10/23/repo-analysis-cancellation branch October 24, 2023 09:59
@DaveCTurner DaveCTurner restored the 2023/10/23/repo-analysis-cancellation branch June 17, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed Meta label for distributed team. v8.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RepositoryAnalyzeAction.AsyncAction#isRunning should not check for cancellation

3 participants