OpenSearch/x-pack/plugin/async-search/src
Jim Ferenczi 1d78bd0f72 Async search should retry updates on version conflict (#63652)
* Async search should retry updates on version conflict

The _async_search APIs can throw version conflict exception when the internal response
is updated concurrently. That can happen if the final response is written while the user
extends the expiration time. That scenario should be rare but it happened in Kibana for
several users so this change ensures that updates are retried at least 5 times. That
should resolve the transient errors for Kibana. This change also preserves the version
conflict exception in case the retry didn't work instead of returning a confusing 404.
This commit also ensures that we don't delete the response if the search was cancelled
internally and not deleted explicitly by the user.

Closes #63213
2020-10-16 08:49:02 +02:00
..
internalClusterTest/java/org/elasticsearch/xpack/search Async search should retry updates on version conflict (#63652) 2020-10-16 08:49:02 +02:00
main Async search should retry updates on version conflict (#63652) 2020-10-16 08:49:02 +02:00
test/java/org/elasticsearch/xpack/search Deprecate REST access to System Indices (#63274) (Original #60945) 2020-10-06 13:41:40 -06:00