Skip to content

Commit 29d5ce0

Browse files
Confirm query future's state before asserting
1 parent 5c5eb84 commit 29d5ce0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ public void testCancel() throws Exception {
274274
});
275275

276276
for (TaskInfo taskInfo : remoteClusterSearchTasks.get()) {
277-
logger.info("Checking for task's cancellation: " + taskInfo.taskId());
278277
assertFalse("taskInfo is cancelled: " + taskInfo, taskInfo.cancelled());
279278
}
280279

@@ -312,7 +311,7 @@ public void testCancel() throws Exception {
312311
}
313312

314313
SearchListenerPlugin.allowQueryPhase();
315-
logger.info("Query phase resumed");
314+
logger.info("Query phase resumed: " + queryFuture.state());
316315
try {
317316
queryFuture.get();
318317
fail("query should have failed");

0 commit comments

Comments
 (0)