The GitHub Actions job "Build" on jackrabbit-oak.git/trunk has succeeded. Run started by GitHub user fabriziofortino (triggered by fabriziofortino).
Head commit for run: 2b87d3da6f7cb02ea63e86fce37325e49ba8e914 / Adam Ĺagoda <[email protected]> OAK-12403: Log Elastic query-parsing errors as WARN and cache repeated invalid queries (#3192) * OAK-12403: Log Elastic query-parsing errors as WARN and cache repeated invalid queries The ES results dashboard aggregates errors happening at ES level. Malformed full-text queries (often attack/probing traffic, e.g. log4shell-style payloads) cause Elastic to fail with a query-parsing error that was previously logged at ERROR in ElasticResultRowAsyncIterator, and every repeat of the same bad query still round-tripped to Elastic. - Detect Elastic query-parsing errors (walking the ErrorCause/causedBy/ rootCause chain for parse-related types/reasons) and log them at WARN instead of ERROR, since they are caused by the query itself and are expected to recur identically, not a genuine Elastic system issue. - Add ElasticInvalidQueryCache, a small bounded/TTL cache of queries that recently failed with a parsing error, so identical subsequent queries are short-circuited (no Elastic call, graceful empty result) instead of repeatedly hitting Elastic. Disabled by default behind the FT_OAK-70592 feature toggle, following this module's existing toggle convention. - Update ElasticFullTextAnalyzerTest to expect WARN for the existing unescaped-braces parsing-error scenario, aligning with the Lucene backend's existing behavior for the same case. - Add unit tests for the new cache and the parsing-error detection logic. Co-authored-by: Copilot <[email protected]> * OAK-12403 Update Feature Flag name * OAK-12403 Delete oak-shaded-guava/.DS_Store * OAK-12403 Delete .DS_Store * OAK-12403 Use Oak Cache for failed ES queries; Reorganize feature-flag; Provide missing annotation --------- Co-authored-by: sii62122 <[email protected]> Co-authored-by: Copilot <[email protected]> Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/39213632323 With regards, GitHub Actions via GitBox
