OpenSearch/modules
Martijn van Groningen b034153df7
Change grok watch dog to be Matcher based instead of thread based. (#48346)
There is a watchdog in order to avoid long running (and expensive)
grok expressions. Currently the watchdog is thread based, threads
that run grok expressions are registered and after completion unregister.
If these threads stay registered for too long then the watch dog interrupts
these threads. Joni (the library that powers grok expressions) has a
mechanism that checks whether the current thread is interrupted and
if so abort the pattern matching.

Newer versions have an additional method to abort long running pattern
matching inside joni. Instead of checking the thread's interrupted flag,
joni now also checks a volatile field that can be set via a `Matcher`
instance. This is more efficient method for aborting long running matches.
(joni checks each 30k iterations whether interrupted flag is set vs.
just checking a volatile field)

Recently we upgraded to a recent joni version (#47374), and this PR
is a followup of that PR.

This change should also fix #43673, since it appears when unit tests
are ran the a test runner thread's interrupted flag may already have
been set, due to some thread reuse.
2019-10-24 15:34:01 +02:00
..
aggs-matrix-stats Replace the SearchContext with QueryShardContext when building aggregator factories (#46527) 2019-09-11 16:43:30 +02:00
analysis-common Reset Token position on reuse in scripted analysis (#47424) 2019-10-02 11:27:04 +01:00
ingest-common Change grok watch dog to be Matcher based instead of thread based. (#48346) 2019-10-24 15:34:01 +02:00
ingest-geoip Fix GeoIpProcessorFactoryTests on windows (#45668) 2019-08-28 18:02:25 -04:00
ingest-user-agent update ingest-user-agent regexes.yml (#47807) 2019-10-18 16:26:48 +02:00
lang-expression upgrade to Lucene-8.3.0-snapshot-25968e3b75e (#48227) 2019-10-21 08:21:09 +02:00
lang-mustache Update mustache dependency to 0.9.6 (#46243) 2019-09-09 13:42:03 +02:00
lang-painless Change Painless regex node to use SField instead of Globals (#47944) 2019-10-15 07:47:16 -07:00
mapper-extras Add client jar for mapper-extras (#47430) 2019-10-03 01:23:45 +02:00
parent-join Revert #46598 that breaks the cachability of the sub search contexts. 2019-10-15 09:40:59 +02:00
percolator Remove the SearchContext from the highlighter context (#47733) 2019-10-10 10:34:10 +02:00
rank-eval Convert RunTask to use testclusers, remove ClusterFormationTasks (#47572) 2019-10-08 14:43:29 +03:00
reindex Fix issues with serializing BulkByScrollResponse (#45357) 2019-10-09 10:12:14 -06:00
repository-url Repository plugin test cacheability fixes (#46572) 2019-09-11 08:24:55 -07:00
systemd Mark fields in SystemdPluginTests as final 2019-07-24 17:16:50 +09:00
transport-netty4 Remove default netty allocator empty assertions (#48356) 2019-10-22 20:22:32 -06:00
build.gradle Convert RunTask to use testclusers, remove ClusterFormationTasks (#47572) 2019-10-08 14:43:29 +03:00