-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Painless: Remove caching of Painless scripts in GenericElasticsearchS…
…cript (#34116) When a script uses the special-cased SearchScript or ExecutableScript, Painless is internally caching the GenericElasticsearchScript that is generated via compile as part of the newInstance method for the factories. This breaks the model for class bindings as the class binding expects to not have any stored information for each instance generated via newInstance from the factory. This change fixes the issue by creating a new instance of the GenericElasticsearchScript each time newInstance is called against the factory.
- Loading branch information
Showing
2 changed files
with
163 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.