-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ManagedSelector can lose selector thread under high concurrent load #1970
Comments
sbordet
added a commit
that referenced
this issue
Nov 14, 2017
Remove broken data structure ConcurrentStack (ABA problem). Made ReservedThreadExecutor use a ConcurrentLinkedDeque instead of ConcurrentStack. Removed "waiting" ReservedThread count, since it was reporting the same as the "size". Removed instrumentation code from previous commit. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
sbordet
added a commit
that referenced
this issue
Nov 14, 2017
* Issue #1970 - ManagedSelector loses selector thread. Removed broken data structure ConcurrentStack (ABA problem). Made ReservedThreadExecutor use a ConcurrentLinkedDeque instead of ConcurrentStack. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Turned out that the problem was the |
The issue of losing a selector thread seems still present. |
sbordet
added a commit
that referenced
this issue
Nov 20, 2017
Instrumented EWYK to gather additional information in case the selector thread is lost. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
gregw
added a commit
that referenced
this issue
Dec 14, 2017
Signed-off-by: Greg Wilkins <gregw@webtide.com>
gregw
added a commit
that referenced
this issue
Dec 14, 2017
ManagedSelector dump improvements from #1970: + DumpKeys is now prepended to actions list so it is less likely to be delayed by a stuck/busy selector + Timestamps are included for actions and keys which may be separated by time + Race removed race for updating dumpKey list while it is being added to. Signed-off-by: Greg Wilkins <gregw@webtide.com>
This was referenced Dec 14, 2017
sbordet
pushed a commit
that referenced
this issue
Dec 19, 2017
Signed-off-by: Greg Wilkins <gregw@webtide.com>
sbordet
added a commit
that referenced
this issue
Dec 28, 2017
Code cleanups. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
gregw
added a commit
that referenced
this issue
Jan 2, 2018
* ManagedSelector dump improvements from #1970 ManagedSelector dump improvements from #1970: + DumpKeys is now prepended to actions list so it is less likely to be delayed by a stuck/busy selector + Timestamps are included for actions and keys which may be separated by time + Race removed race for updating dumpKey list while it is being added to. Signed-off-by: Greg Wilkins <gregw@webtide.com> * moved utility timestamp format method to Log Signed-off-by: Greg Wilkins <gregw@webtide.com> * updates after review Signed-off-by: Greg Wilkins <gregw@webtide.com> * changes after review Signed-off-by: Greg Wilkins <gregw@webtide.com> * Issue #1970 - ManagedSelector dump improvements. Code cleanups. Signed-off-by: Simone Bordet <simone.bordet@gmail.com> * Revert "Issue #1970 - ManagedSelector dump improvements." This reverts commit 4febaf1. * Fixed imports and other review feedback Signed-off-by: Greg Wilkins <gregw@webtide.com>
@sbordet can we close this now? |
@gregw I think so, I've never seen it again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Under high concurrent load, the following has been observed in a
HttpClient
dump:The
ManagedSelector
is dumped, reports 1864 keys, but none of the keys is actually printed out.The text was updated successfully, but these errors were encountered: