Skip to content

Conversation

@brettsam
Copy link
Member

The race fixed with #1876 means that we should be able to dispose of the ILoggerFactory again. This is useful because it disposes of everything being used by the TelemetryClient and also flushes any outstanding telemetry.

Taking a different approach this time -- since the ScriptHost is creating the LoggerFactory, it should be responsible for disposing it. Previously, I was disposing it in the JobHostContext in the SDK repo.

My testing (explained in #1690) leads me to believe that the race is fixed, but it's tough to prove 100%. I'll be monitoring the next rollout to make sure that I don't see any of these ObjectDisposedExceptions getting thrown.

@brettsam brettsam force-pushed the loggerdispose branch 2 times, most recently from 1855307 to 4f15673 Compare September 13, 2017 13:55
@brettsam brettsam merged commit ff8ac4c into Azure:dev Sep 13, 2017
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.

3 participants