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: Eliminate intermittent deadlock on agent startup. (#2183) #2184

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

tippmar-nr
Copy link
Member

Thank you for submitting a pull request. Please review our contributing guidelines and code of conduct.

Description

This PR changes how the agent is initialized when running on the .NET Standard 2.0 build target so that it uses the same "deferred" initialization pattern that the .NET Framework build target currently uses. This will eliminate an intermittent deadlock that has been observed at agent startup which has the unfortunate side effect of freezing the customer application.

A new integration test was added that verifies the agent does not deadlock. This test was run against the agent from the current main branch and failed; the same test was run against this PR branch and succeeded.

Fixes #2183

…ing the .NET Standard agent build in the same manner as the .NET Framework build target.
Copy link
Member

@nr-ahemsath nr-ahemsath left a comment

Choose a reason for hiding this comment

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

Based on our team discussion yesterday, and the addition of the test, this looks good to me. 🚢

@tippmar-nr tippmar-nr enabled auto-merge (squash) January 11, 2024 22:36
@tippmar-nr tippmar-nr merged commit 11c0241 into main Jan 11, 2024
78 checks passed
@tippmar-nr tippmar-nr deleted the fix/startup-hang branch January 11, 2024 22:36
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.

Agent freezes customer application intermittently at startup
3 participants