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

AsyncWrapper in Blocking Mode can cause deadlock on NetCore #3415

Merged

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented May 22, 2019

Fixed deadlock caused by misunderstanding Monitor.Wait when configuring AsyncWrapper to Blocking-mode on NetCore.

Resolves #3414

@snakefoot
Copy link
Contributor Author

Will have to figure out if we can reuse one of the existing unit-tests for stress-testing the async-queue to verify the bug is gone.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (release/4.6.4@df0c1b6). Click here to learn what that means.
The diff coverage is 100%.

@@               Coverage Diff               @@
##             release/4.6.4   #3415   +/-   ##
===============================================
  Coverage                 ?     80%           
===============================================
  Files                    ?     358           
  Lines                    ?   28371           
  Branches                 ?    3785           
===============================================
  Hits                     ?   22753           
  Misses                   ?    4531           
  Partials                 ?    1087

@304NotModified 304NotModified added the bug Bug report / Bug fix label May 22, 2019
@304NotModified 304NotModified added this to the 4.6.4 milestone May 22, 2019
@304NotModified 304NotModified merged commit 54b5180 into NLog:release/4.6.4 May 22, 2019
@304NotModified 304NotModified changed the title ConcurrentRequestQueue - Fixed deadlock caused by misunderstanding Monitor.Wait Async/Buffering - Fixed potential deadlock May 22, 2019
@snakefoot snakefoot changed the title Async/Buffering - Fixed potential deadlock AsyncWrapper in Blocking Mode can cause deadlock May 22, 2019
@snakefoot
Copy link
Contributor Author

Created #3416 with unit-test. And also discovered a performance opportunity.

@snakefoot snakefoot changed the title AsyncWrapper in Blocking Mode can cause deadlock AsyncWrapper in Blocking Mode can cause deadlock on NetCore May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report / Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants