Skip to content

Commit

Permalink
Avoid exceeded semaphore permits in ESQL tests (elastic#98625)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn authored and csoulios committed Aug 18, 2023
1 parent f1bb2bc commit eae7e65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void cancelTask(TaskId taskId) {
CancelTasksRequest request = new CancelTasksRequest().setTargetTaskId(taskId).setReason("test cancel");
request.setWaitForCompletion(false);
client().admin().cluster().execute(CancelTasksAction.INSTANCE, request).actionGet();
scriptPermits.release(Integer.MAX_VALUE);
scriptPermits.release(Integer.MAX_VALUE / 2);
request = new CancelTasksRequest().setTargetTaskId(taskId).setReason("test cancel");
request.setWaitForCompletion(true);
client().admin().cluster().execute(CancelTasksAction.INSTANCE, request).actionGet();
Expand Down

0 comments on commit eae7e65

Please sign in to comment.