Skip to content

Commit aa1dc0d

Browse files
Reindex search response fix again (#49423)
Fixed test case to more broadly accept all messages with "Partial shards failure" in it, to hopefully catch all relevant search messages now that reindex does not allow searching against red shards. Closes #49295
1 parent d539769 commit aa1dc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/reindex/src/test/java/org/elasticsearch/index/reindex/ReindexFailureTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void testResponseOnSearchFailure() throws Exception {
121121
either(containsString("all shards failed"))
122122
.or(containsString("No search context found"))
123123
.or(containsString("no such index [source]"))
124-
.or(containsString("Failed to execute phase [query], Partial shards failure"))
124+
.or(containsString("Partial shards failure"))
125125
);
126126
return;
127127
}

0 commit comments

Comments
 (0)