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:
parent
fd1bb4a33a
commit
bc29c9877a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue