diff --git a/server/src/internalClusterTest/java/org/elasticsearch/search/retriever/RetrieverRewriteIT.java b/server/src/internalClusterTest/java/org/elasticsearch/search/retriever/RetrieverRewriteIT.java index 7ab8d3271981d..00013a8d396ba 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/search/retriever/RetrieverRewriteIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/search/retriever/RetrieverRewriteIT.java @@ -125,7 +125,10 @@ public void testRewriteCompoundRetrieverShouldThrowForPartialResults() throws Ex SearchPhaseExecutionException.class, client().prepareSearch(testIndex).setSource(source)::get ); - assertThat(ex.getDetailedMessage(), containsString("Search rejected due to missing shards")); + assertThat( + ex.getDetailedMessage(), + containsString("[open_point_in_time] action requires all shards to be available. Missing shards") + ); } finally { internalCluster().restartNode(randomDataNode); }