-
Notifications
You must be signed in to change notification settings - Fork 94
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
BUGFIX : Resolve hangs due to unhandled exceptions during multithreaded analysis file hashing phase. #2600
Conversation
@@ -882,6 +882,45 @@ public void MultithreadedAnalyzeCommandBase_TargetFileSizeTestCases() | |||
} | |||
} | |||
|
|||
[Fact] | |||
public void MultithreadedAnalyzeCommandBase_ErrorWhenHashing() |
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.
finally | ||
{ | ||
readyToScanChannel.Writer.Complete(); | ||
} |
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.
used the same code for enumeration phase.
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 meant to note that we need to review all channel writes and reads to ensure that completion occurs in any code path with unhandled exception.
When exception happens, below 2 lines will not run:
I can reproduce this when debugging below line will be waiting, not ending at all: