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

Fix worker <-> teardown by adding separate worker connection teardown semaphore #17033

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SeanNijjar
Copy link
Contributor

@SeanNijjar SeanNijjar commented Jan 23, 2025

Submitting on behalf of @tt-aho who did the work for this fix.

Ticket

#16634

Problem description

See issue for more details. There was a bug in the worker connection teardown logic that would lead to non-deterministic and unsafe worker <-> edm fabric teardown, possibly leading to hangs.

What's changed

Added a dedicated worker teardown semaphore on the worker that removes the (bug) aliasing between flow control logic and worker connection teardown logic. Note that this doesn't appear to resolve all hangs as another hang now appears after running several hundred iterations after applying this fix.

Checklist

@SeanNijjar SeanNijjar linked an issue Jan 23, 2025 that may be closed by this pull request
Comment on lines 179 to 181
// A proper fix requires for example adding an additional teardown semaphore on the
// worker side that the EDM writes to to acknowledge teardown. The problem here
// is that the flow control aliases the teardown.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comment

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

Successfully merging this pull request may close these issues.

Fix Worker <-> fabric EDM connection teardown race
2 participants