Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void resetSearchListenerPlugin() {
}

private SubmitAsyncSearchRequest makeSearchRequest(String... indices) {
CrossClusterAsyncSearchIT.SearchListenerPlugin.blockQueryPhase();
CrossClusterAsyncSearchIT.SearchListenerPlugin.blockLocalQueryPhase();

SubmitAsyncSearchRequest request = new SubmitAsyncSearchRequest(indices);
request.setCcsMinimizeRoundtrips(randomBoolean());
Expand Down Expand Up @@ -220,7 +220,7 @@ public void testCancelledSearch() throws Exception {
String remoteIndex = (String) testClusterInfo.get("remote.index");

SubmitAsyncSearchRequest searchRequest = makeSearchRequest(localIndex, REMOTE1 + ":" + remoteIndex);
CrossClusterAsyncSearchIT.SearchListenerPlugin.blockQueryPhase();
CrossClusterAsyncSearchIT.SearchListenerPlugin.blockLocalQueryPhase();

String nodeName = cluster(LOCAL_CLUSTER).getRandomNodeName();
final AsyncSearchResponse response = cluster(LOCAL_CLUSTER).client(nodeName)
Expand All @@ -232,7 +232,7 @@ public void testCancelledSearch() throws Exception {
response.decRef();
assertTrue(response.isRunning());
}
CrossClusterAsyncSearchIT.SearchListenerPlugin.waitSearchStarted();
CrossClusterAsyncSearchIT.SearchListenerPlugin.waitLocalSearchStarted();

ActionFuture<ListTasksResponse> cancelFuture;
try {
Expand Down Expand Up @@ -290,7 +290,7 @@ public void testCancelledSearch() throws Exception {
assertTrue(taskInfo.description(), taskInfo.cancelled());
}
} finally {
CrossClusterAsyncSearchIT.SearchListenerPlugin.allowQueryPhase();
CrossClusterAsyncSearchIT.SearchListenerPlugin.allowLocalQueryPhase();
}

assertBusy(() -> assertTrue(cancelFuture.isDone()));
Expand Down
Loading