Bring back automaton minimization (#119309)

The security codebase relies heavily on automata and caching these. The
Lucene 10 upgrade removed automaton minimization which can result in a
memory usage increase of >5x, esp. for roles with many application
privileges. 

This PR brings back Automaton minimization to avoid the explosion in
roles cache size.

Relates: ES-10451
This commit is contained in:
Nikolaj Volgushev 2024-12-30 15:52:58 +01:00 committed by GitHub
parent 73f0a5e20c
commit 257ad517d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 429 additions and 32 deletions

View file

@ -480,4 +480,5 @@ module org.elasticsearch.server {
exports org.elasticsearch.inference.configuration;
exports org.elasticsearch.monitor.metrics;
exports org.elasticsearch.plugins.internal.rewriter to org.elasticsearch.inference;
exports org.elasticsearch.lucene.util.automaton;
}