[ 
https://issues.apache.org/jira/browse/OAK-12403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabrizio Fortino reassigned OAK-12403:
--------------------------------------

    Assignee: Fabrizio Fortino

> oak-search-elastic: better handling of parse_exception
> ------------------------------------------------------
>
>                 Key: OAK-12403
>                 URL: https://issues.apache.org/jira/browse/OAK-12403
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: elastic-search
>            Reporter: Thomas Mueller
>            Assignee: Fabrizio Fortino
>            Priority: Major
>
> Quite often we get  errors like
> {noformat}
> org.apache.jackrabbit.oak.plugins.index.elastic.query.async.ElasticResultRowAsyncIterator
>  
> Error while fetching results from Elastic for  ...
> co.elastic.clients.elasticsearch._types.ElasticsearchException: 
> [es/search] failed: [search_phase_execution_exception] all shards failed
> {noformat}
> We should improve the handling of these cases:
> * log parse_exceptions as WARN instead of ERROR
> * reduce load on ES. These requests are might be quite frequent (in the 
> reported case it's a clear attack some bot is trying to do). Every request is 
> a call to ES that reply always in the same way. We should detect these cases 
> and avoid to call ES. I see 2 options:
> we pre-parse every request before calling ES and only forward it if valid
> we cache the invalid queries and when we receive other same requests we skip 
> the ES call



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to