Skip to content

AsyncWrapper in Blocking Mode can cause deadlock on NetCore#3415

Merged
304NotModified merged 1 commit intoNLog:release/4.6.4from
snakefoot:NetCoreAsyncQueueDeadlock
May 22, 2019
Merged

AsyncWrapper in Blocking Mode can cause deadlock on NetCore#3415
304NotModified merged 1 commit intoNLog:release/4.6.4from
snakefoot:NetCoreAsyncQueueDeadlock

Conversation

@snakefoot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

3 participants