You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stabilize CancellableTasksIT#testRemoveBanParentsOnDisconnect (#131858)
Ensure that the cluster has a stably elected master node
when the test completes so that the post-test tear-down
check for cluster state consistency can succeed.
Closes#131562
Copy file name to clipboardExpand all lines: server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/node/tasks/CancellableTasksIT.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -363,6 +363,10 @@ public void testRemoveBanParentsOnDisconnect() throws Exception {
363
363
allowEntireRequest(rootRequest);
364
364
cancelFuture.actionGet();
365
365
ensureBansAndCancellationsConsistency();
366
+
// This method will call the cluster health API with wait_for_tasks set to Priority#LANGUID. This will ensure that all tasks
367
+
// currently submitted to the master service (included re-election after a disconnect) are processed before returning. This
368
+
// ensures cluster stability for the post-test consistency checks.
0 commit comments