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

make sure joni regexp interruptability is enabled #10978

Closed

Conversation

colinsurprenant
Copy link
Contributor

@colinsurprenant colinsurprenant commented Jul 19, 2019

Related to #10976

Since v6.7.0 where JRuby was updated from 9.1.13.0 to 9.2.6.0, joni interruptability does not work and need to be enabled using a JRuby option. This means that without this fix or the workaround below, both the kv and grok filters timeout options will not work.

Setting -Djruby.regexp.interruptible=true force the interruptibility of the joni regexp library.

Until this fix is released, a workaround is to manually add this into config/jvm.options

# Make sure joni regexp interruptability is enabled
-Djruby.regexp.interruptible=true

Copy link
Member

@jsvd jsvd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tested locally, let's merge to 6.8/7.2+

@elasticsearch-bot
Copy link

Colin Surprenant merged this into the following branches!

Branch Commits
6.8 1a5e8a9
7.2 5b74110
7.3 0e6be02
7.x 524dd45
master 696323f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants