elasticsearch/server
Jim Ferenczi 83126135fa
Avoid unnecessary determinization in index pattern conflict checks (#128362)
Starting with Lucene 10, `CharacterRunAutomaton` is no longer determinized automatically.
In Elasticsearch 9, we adapted to this by eagerly determinizing automatons early (via `Regex#simpleMatchToAutomaton`).
However, this introduced  regression: operations like index template conflict checks, which only require intersection testing, now pay the cost of determinization—an expensive step that wasn’t needed before. In some cases, especially when many wildcard patterns are involved, determinization can even fail due to state explosion.

This change removes the unnecessary determinization, restoring the pre-9.0 behavior and allowing valid index templates with many patterns to be registered again.
2025-06-02 10:39:35 +02:00
..
licenses Remove JNA from server dependencies (#110809) 2024-07-16 11:28:58 +03:00
src Avoid unnecessary determinization in index pattern conflict checks (#128362) 2025-06-02 10:39:35 +02:00
build.gradle Generate a test dependencies file to support unit tests in entitlements (#127486) 2025-05-21 16:21:28 -07:00