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

Revert "ProcessExit event handler improvements" #1410

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

tonyredondo
Copy link
Member

@tonyredondo tonyredondo commented Apr 16, 2021

Reverts #1332

This PR is causing problems on WebRequest20Tests.SubmitsTraces test.

There is an edge case where a delegate gets subscribed while the ProcessExit delegate invocation list is already being executed. In that case the count variable will read the actual number (after the subscription) but the for loop executing the invocation list will have the previous value. Resulting in merging the last delegate to a delegate that will never be executed.

@tonyredondo tonyredondo requested a review from a team as a code owner April 16, 2021 15:18
@tonyredondo tonyredondo self-assigned this Apr 16, 2021
@lucaspimentel lucaspimentel added the area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) label Apr 16, 2021
@tonyredondo tonyredondo merged commit e7b86eb into master Apr 16, 2021
@tonyredondo tonyredondo deleted the revert-1332-tony/process-exit-event branch April 16, 2021 17:23
@andrewlock andrewlock added this to the 1.26.0 milestone Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants