Concurrency bug fix - BuildManager instances acquire its own BuildTelemetry instance (#8444) #8561
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Original implementation did not expect multiple instances of BuildManager called concurrently. But in VS DTB and normal build are run concurrently.
This is backported from main PR #8444
Customer Impact
In rare cases Dictionary data structure is corrupted and can cause infinite loop. This affect only VS scenarios.
It is currently #7 ranked VS hang issue.
Regression?
Yes, introduced in VS 17.4.
Testing
Manual validation by @rokonec and automated tests. Additionally it has been in bleeding edge VS for about three weeks.
Risk
Low
Note
Has been already backported to 17.5
Contains fix for infra which disables nuget static graph restore (otherwise CI pipeline is failing)