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

[17.11] Prevent contention between CancelAllSubmissions and EndBuild #10743

Closed

Conversation

JanKrivanek
Copy link
Member

@JanKrivanek JanKrivanek commented Oct 2, 2024

Fixes #10709

Context

VS hangs during solution close - turins out to be caused by hang in BuildManager.EndBuild
There are almost 3k cases hit in wild on 17.11

It turns out to be a contention between CancelAllSubmissions and EndBuild (for the state of _buildManagerState) - more details in the bug: #10709 (comment)

Changes Made

CancelAllSubmissions is allowed to be executed even if EndBuild was initiated

@JanKrivanek JanKrivanek changed the title Prevent race between CancelAllSubmissions and EndBuild [17.11] Prevent race between CancelAllSubmissions and EndBuild Oct 2, 2024
@JanKrivanek JanKrivanek force-pushed the proto/fix-solution-close-hang branch from 721e35a to e6b65a8 Compare October 2, 2024 16:06
@JanKrivanek JanKrivanek force-pushed the proto/fix-solution-close-hang branch from e6b65a8 to 97072d0 Compare October 2, 2024 16:46
@JanKrivanek JanKrivanek changed the title [17.11] Prevent race between CancelAllSubmissions and EndBuild [17.11] Prevent contention between CancelAllSubmissions and EndBuild Oct 2, 2024
@JanKrivanek JanKrivanek requested a review from a team as a code owner October 2, 2024 16:52
@JanKrivanek
Copy link
Member Author

If needed - we'll backport #10744

@JanKrivanek JanKrivanek closed this Oct 2, 2024
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.

1 participant