-
Notifications
You must be signed in to change notification settings - Fork 636
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 memory leak #13892
Fix memory leak #13892
Conversation
@@ -227,7 +227,6 @@ public DynamoLogger(DebugSettings debugSettings, string logDirectory, Boolean is | |||
/// <param name="isServiceMode">We want restrict logging in service mode to console only due to lambda limitations.</param> | |||
/// TODO(DYN-5757): Review usage of isTestMode,isTestMode,isServiceMode across Dynamo and see how we can consildate all these flags. | |||
public DynamoLogger(DebugSettings debugSettings, string logDirectory, Boolean isTestMode, Boolean isCLIMode, Boolean isServiceMode) | |||
: this(debugSettings, logDirectory, isTestMode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, did this sub LogToConsole
twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Parallel tests passed here: https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/8812/ |
Serial tests passed here: https://master-15.jenkins.autodesk.com/view/DYN/job/DYN-DevCI_Self_Service/1141/ |
@mjkkirschner PTAL |
@sm6srw is that event unsubscribed anywhere? (originally I mean, even before the PR that introduced the issue) |
Yes, it is. That was the leak. We subscribed twice but was only unsubscribing once. |
@mjkkirschner This new constructor was introduced here: #13860 |
Purpose
The logger constructors where called twice:
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
FYIs