With Elasticsearch 7.10 we are getting the following error when using a stored script.
ElasticsearchException[Elasticsearch exception [type=general_script_exception, reason=Failed to compile stored script [updateMessageV4] using lang [painless]]]; nested: ElasticsearchException[Elasticsearch exception [type=circuit_breaking_exception, reason=[script] Too many dynamic script compilations within, max: [75/5m]; please use indexed, or scripts with parameters instead;...
The script is correctly found under stored_scripts
when requesting _cluster/state
I would expect the script to be compiled just once.
And it actually worked fine before with Elasticsearch 7.7