mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Transform and condition scripts were only compiled on its initial creation, so when a new watch is created or when the master node loads all the watches. However changing a script (like a stored one) did not lead to any changes in the in memory watch store and thus the old script was executed again. We do however have a mechanism in Elasticsearch's ScriptService that already does some caching, and should reuse that one. Closes elastic/elasticsearch#4237 Original commit: elastic/x-pack-elasticsearch@477548e237