Skip to content

Test task status/reason consistency before cancellation#144716

Merged
michalborek merged 4 commits intoelastic:mainfrom
michalborek:status-consistency
Mar 24, 2026
Merged

Test task status/reason consistency before cancellation#144716
michalborek merged 4 commits intoelastic:mainfrom
michalborek:status-consistency

Conversation

@michalborek
Copy link
Copy Markdown
Contributor

To ensure the cancellation reason is consistently null before the task is cancelled, the assertion was moved to a while block.

@michalborek michalborek added :Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. >test Issues or PRs that are addressing/adding tests labels Mar 23, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Mar 23, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Mar 23, 2026
Copy link
Copy Markdown
Contributor

@szybia szybia left a comment

Choose a reason for hiding this comment

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

nice!

@michalborek michalborek requested a review from DaveCTurner March 23, 2026 13:43
Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM but @szybia's approval is enough

@michalborek michalborek merged commit 016b281 into elastic:main Mar 24, 2026
21 of 24 checks passed
@michalborek michalborek deleted the status-consistency branch March 24, 2026 06:52
michalborek added a commit to michalborek/elasticsearch that referenced this pull request Mar 24, 2026
* Test task status/reason consistency before cancellation

* Fix potential flakiness of the test

* [CI] Auto commit changes from spotless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants