Skip to content

Commit 2235e02

Browse files
committed
Tests: don't wait for completion while trying to get completed task
Nodes are reusing task ids after restart. So in some rare circumstances the same task id might be assigned to the reindexing task stored by the old cluster and the new task that is trying to retrieve the task results. As a result, the get task request can timeout waiting on itself. Since we already waited for the task to finish before restarting the cluster, waiting for the task here doesn't make any sense to start with. Fixes elastic#28732
1 parent 5c95fc7 commit 2235e02

File tree

1 file changed

+0
-1
lines changed
  • qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster

1 file changed

+0
-1
lines changed

qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/10_basic.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141

142142
- do:
143143
tasks.get:
144-
wait_for_completion: true
145144
task_id: $task_id
146145

147146
- is_false: node_failures

0 commit comments

Comments
 (0)