Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle race conditition in receiving final task info #25333

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

losipiuk
Copy link
Member

Description

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

It seems to happen that final task info can be received in rare cases
much after we taskStatus is marked as completed. In such case
RemoteTaskCompletedEvent was processed twice.
* first event sent by preventive mechanism; handling tasks for which
  final task info was lost
* second event which is late arrival.

In such case we triggered check in taskFailed as single task was marked
as failed twice.
@wendigo
Copy link
Contributor

wendigo commented Mar 18, 2025

Can we test that race @losipiuk ?

Copy link
Contributor

@wendigo wendigo left a comment

Choose a reason for hiding this comment

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

This doesn't seem harmful so LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants