-
Notifications
You must be signed in to change notification settings - Fork 98
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
IllegalMonitorStateException in ReentrantLock$Sync.tryRelease on executor shutdown #38
Comments
Hi @szpak, Thanks for reporting! 👍 I confirm that there is a blocking call detected:
Although since this is FYI sometimes exceptions get swallowed (like here), but you can use this trick: BlockHound.install(b -> {
b.blockingMethodCallback(m -> {
new Exception("Blocking call: " + m).printStackTrace();
});
}); |
Yes, in the meantime I also got the root cause of that issue (with Regarding whitelisting, as my case is legitimate - |
The whitelisting has disadvantage that I cannot simply test |
You can test it without the executor. In fact, I would not use the executor here (nor any Reactor's code) |
On the other hand, whitelisting Update. Response to myself. GH didn't refresh the page. |
Currently I have my own |
Working on JMH in #35 I have encountered an exception thrown on an executor service shutdown if
ReactorThreadFactory
is used withrejectBlocking: false
(anddaemon: false
in that case):It occurs only with BlockHound installed. Sample code to produce that result:
The text was updated successfully, but these errors were encountered: