Skip to content

Commit

Permalink
Reindex search response fix (#49301)
Browse files Browse the repository at this point in the history
Fixed test case to also accept another error message, now that reindex
does not allow searching against red shards.

Closes #49295
  • Loading branch information
henningandersen authored Nov 19, 2019
1 parent 124cd18 commit f2cba4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public void testAbortOnVersionConflict() throws Exception {
* the whole process. We do lose some information about how far along the
* process got, but its important that they see these failures.
*/
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/49295")
public void testResponseOnSearchFailure() throws Exception {
/*
* Attempt to trigger a reindex failure by deleting the source index out
Expand Down Expand Up @@ -122,7 +121,8 @@ public void testResponseOnSearchFailure() throws Exception {
either(containsString("all shards failed"))
.or(containsString("No search context found"))
.or(containsString("no such index [source]"))
);
.or(containsString("Failed to execute phase [query], Partial shards failure"))
);
return;
}
}
Expand Down

0 comments on commit f2cba4e

Please sign in to comment.