https://github.com/elastic/elasticsearch
Revision c5f60e894ca0c61cdbae4f5a686d9f08bcefc942 authored by David Turner on 13 July 2021, 15:25:26 UTC, committed by David Turner on 13 July 2021, 16:15:27 UTC
In #74081 this test failed with a `NoNodeAvailableException` within the
`indexRandom()` call immediately after stopping a node. This could
happen if the `node-left` event wasn't fully applied before calling
`indexRandom()` with an empty list of docs but with `forceRefresh` set
to true: since there's no docs, the replica wouldn't be marked as stale,
so the final refresh would detect the missing node, failing its
`assertNoFailures` wrapper.

This commit avoids calling `indexRandom()` with no docs in this
location. It also enhances `assertNoFailures` to report the details of
each failure, rather than just the summary.

Closes #74081
1 parent 6cc23b7
History
Tip revision: c5f60e894ca0c61cdbae4f5a686d9f08bcefc942 authored by David Turner on 13 July 2021, 15:25:26 UTC
Fix testPreferCopyWithHighestMatchingOperations (#75170)
Tip revision: c5f60e8
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-- 419 bytes
.gitattributes -rw-r--r-- 32 bytes
.gitignore -rw-r--r-- 1.2 KB
CONTRIBUTING.md -rw-r--r-- 36.8 KB
LICENSE.txt -rw-r--r-- 546 bytes
NOTICE.txt -rw-r--r-- 228 bytes
README.asciidoc -rw-r--r-- 2.6 KB
TESTING.asciidoc -rw-r--r-- 33.1 KB
Vagrantfile -rw-r--r-- 15.0 KB
build.gradle -rw-r--r-- 20.1 KB
gradle.properties -rw-r--r-- 864 bytes
gradlew -rwxr-xr-x 5.6 KB
gradlew.bat -rw-r--r-- 2.7 KB
settings.gradle -rw-r--r-- 4.4 KB

README.asciidoc

back to top