OpenSearch/libs
Martijn van Groningen 6030d4be1e
[INGEST] Interrupt the current thread if evaluation grok expressions take too long (#31024)
This adds a thread interrupter that allows us to encapsulate calls to org.joni.Matcher#search()
This method can hang forever if the regex expression is too complex.

The thread interrupter in the background checks every 3 seconds whether there are threads
execution the org.joni.Matcher#search() method for longer than 5 seconds and
if so interrupts these threads.

Joni has checks that that for every 30k iterations it checks if the current thread is interrupted and
if so returns org.joni.Matcher#INTERRUPTED

Closes #28731
2018-06-12 07:49:03 +02:00
..
cli Move cli sub-project out of server to libs (#31184) 2018-06-07 16:35:34 -04:00
core Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
grok [INGEST] Interrupt the current thread if evaluation grok expressions take too long (#31024) 2018-06-12 07:49:03 +02:00
nio Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
plugin-classloader Build: Fail if any libs depend on non-core libs (#29336) 2018-04-16 11:49:27 -04:00
secure-sm Build: Fail if any libs depend on non-core libs (#29336) 2018-04-16 11:49:27 -04:00
x-content Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
build.gradle Rename elasticsearch-core to core (#31185) 2018-06-07 16:50:21 -04:00