Revision c4138e51121ef06a6404866cddc601906fe5c868 authored by Jim Ferenczi on 16 October 2020, 06:37:23 UTC, committed by jimczi on 16 October 2020, 06:49:27 UTC
* 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
1 parent eb6cd20
File | Mode | Size |
---|---|---|
.ci | ||
.github | ||
.idea | ||
benchmarks | ||
buildSrc | ||
client | ||
dev-tools | ||
distribution | ||
docs | ||
gradle | ||
libs | ||
licenses | ||
modules | ||
plugins | ||
qa | ||
rest-api-spec | ||
server | ||
test | ||
x-pack | ||
.dir-locals.el | -rw-r--r-- | 3.3 KB |
.editorconfig | -rw-r--r-- | 375 bytes |
.gitattributes | -rw-r--r-- | 32 bytes |
.gitignore | -rw-r--r-- | 959 bytes |
CONTRIBUTING.md | -rw-r--r-- | 25.8 KB |
LICENSE.txt | -rw-r--r-- | 645 bytes |
NOTICE.txt | -rw-r--r-- | 228 bytes |
README.asciidoc | -rw-r--r-- | 6.8 KB |
TESTING.asciidoc | -rw-r--r-- | 29.0 KB |
Vagrantfile | -rw-r--r-- | 17.0 KB |
build.gradle | -rw-r--r-- | 18.8 KB |
gradle.properties | -rw-r--r-- | 496 bytes |
gradlew | -rwxr-xr-x | 5.6 KB |
gradlew.bat | -rw-r--r-- | 3.0 KB |
settings.gradle | -rw-r--r-- | 4.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...