Skip to content

[17.11] Prevent contention between CancelAllSubmissions and EndBuild#10743

Closed
JanKrivanek wants to merge 2 commits into
dotnet:vs17.11from
JanKrivanek:proto/fix-solution-close-hang
Closed

[17.11] Prevent contention between CancelAllSubmissions and EndBuild#10743
JanKrivanek wants to merge 2 commits into
dotnet:vs17.11from
JanKrivanek:proto/fix-solution-close-hang

Conversation

@JanKrivanek
Copy link
Copy Markdown
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
Copy Markdown
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