-
Notifications
You must be signed in to change notification settings - Fork 97
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
Interrupts during Mutex locks not caught #97
Comments
To add to this, the second error in the log looks to be from not clearing the interrupted flag on the thread, causing the next |
Actually, looking at Mutex.java it looks like the interrupted status should have cleared. However, the exception would have prevented the |
The TimeoutEnforcer used ruby's Mutex class which is interruptible and throws a special exception. This switches the code to use ReentrantLock (which JRuby's Mutex is based on) directly, and use ReentrantLock.lock instead of ReentrantLock.lockInterruptibly This also adds a small note about the placement of thread.interrupted. Fixes logstash-plugins#97
Thanks so much for the quick turnaround! I'll try picking up the patch and give it a whirl. Due to our intranet setup installing new plugins from git has been painful due to SSL certificate errors. Hopefully it gets rolled into the next LS release. I can confirm my mapping file had multiple =~ checks |
From https://discuss.elastic.co/t/grok-terminating-logstash-5-0/64307 and #95
This error:
Cleaned up stack trace:
The text was updated successfully, but these errors were encountered: