Reindex search response fix (#49301)

Fixed test case to also accept another error message, now that reindex
does not allow searching against red shards.

Closes #49295
This commit is contained in:
Henning Andersen 2019-11-19 14:37:03 +01:00 committed by Henning Andersen
parent fd1bb4a33a
commit bc29c9877a
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,6 @@ public class ReindexFailureTests extends ReindexTestCase {
* 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
@ -120,7 +119,8 @@ public class ReindexFailureTests extends ReindexTestCase {
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;
}
}