OpenSearch/x-pack/plugin
Jay Modi eed4cd25eb
ThreadPool and ThreadContext are not closeable (#43249) (#49273)
This commit changes the ThreadContext to just use a regular ThreadLocal
over the lucene CloseableThreadLocal. The CloseableThreadLocal solves
issues with ThreadLocals that are no longer needed during runtime but
in the case of the ThreadContext, we need it for the runtime of the
node and it is typically not closed until the node closes, so we miss
out on the benefits that this class provides.

Additionally by removing the close logic, we simplify code in other
places that deal with exceptions and tracking to see if it happens when
the node is closing.

Closes #42577
2019-11-19 13:15:16 -07:00
..
analytics [7.x] Implement stats aggregation for string terms (#49097) 2019-11-15 14:36:21 +02:00
ccr Make Repository.getRepositoryData an Async API (#49299) (#49312) 2019-11-19 16:49:12 +01:00
core Make Repository.getRepositoryData an Async API (#49299) (#49312) 2019-11-19 16:49:12 +01:00
deprecation Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
enrich Reuse collected cluster state in EnrichPolicyRunner (#48488) (#49100) 2019-11-14 14:14:39 -05:00
frozen-indices Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
graph Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
ilm ThreadPool and ThreadContext are not closeable (#43249) (#49273) 2019-11-19 13:15:16 -07:00
logstash Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
mapper-flattened Add telemetry for flattened fields. (#48972) (#49125) 2019-11-18 12:29:42 -08:00
ml [ML][Inference] changing setting to be memorySizeSettting (#49259) (#49302) 2019-11-19 07:56:40 -05:00
monitoring [7.x] Validate monitoring password at parse time (#49083) 2019-11-14 09:39:28 -06:00
rollup Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
search-business-rules Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
security ThreadPool and ThreadContext are not closeable (#43249) (#49273) 2019-11-19 13:15:16 -07:00
spatial Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
sql SQL: Fix issue with mins & hours for DATEDIFF (#49252) 2019-11-19 14:25:28 +01:00
src/test Relax assertions related to datafeed timing stats in .yml test (#49285) (#49291) 2019-11-19 12:50:14 +01:00
transform [Transform] improve error handling of script errors (#48887) 2019-11-18 10:24:39 +01:00
vectors Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
voting-only-node Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
watcher Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00