Skip to content

Commit 5608cf6

Browse files
authored
Block remote query search too in testCancellationViaTimeoutWithAllowPartialResultsSetToFalse (#134236) (#134250)
* Block remote query search too (cherry picked from commit 9f4262b) # Conflicts: # muted-tests.yml
1 parent 9f62fee commit 5608cf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugin/async-search/src/internalClusterTest/java/org/elasticsearch/xpack/search/CrossClusterAsyncSearchIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,7 @@ public void testCancellationViaTimeoutWithAllowPartialResultsSetToFalse() throws
17521752
String remoteIndex = (String) testClusterInfo.get("remote.index");
17531753

17541754
SearchListenerPlugin.blockLocalQueryPhase();
1755+
SearchListenerPlugin.blockRemoteQueryPhase();
17551756

17561757
TimeValue searchTimeout = new TimeValue(100, TimeUnit.MILLISECONDS);
17571758
// query builder that will sleep for the specified amount of time in the query phase
@@ -1809,6 +1810,7 @@ public void testCancellationViaTimeoutWithAllowPartialResultsSetToFalse() throws
18091810

18101811
} finally {
18111812
SearchListenerPlugin.allowLocalQueryPhase();
1813+
SearchListenerPlugin.allowRemoteQueryPhase();
18121814
}
18131815

18141816
// query phase has begun, so wait for query failure (due to timeout)

0 commit comments

Comments
 (0)