Fix trappy timeouts in persistent tasks requests (#120514)

Ensure that callers constructing these master-node requests pass in an
explicit timeout.

Relates #107984
This commit is contained in:
David Turner 2025-01-23 09:35:45 +00:00 committed by GitHub
parent 7563e71e90
commit a1fd7bc374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 188 additions and 111 deletions

View file

@ -549,7 +549,7 @@ public class TransportDownsampleAction extends AcknowledgedTransportMasterNodeAc
persistentTaskId,
DownsampleShardTask.TASK_NAME,
params,
null,
TimeValue.THIRTY_SECONDS /* TODO should this be configurable? longer by default? infinite? */,
ActionListener.wrap(
startedTask -> persistentTasksService.waitForPersistentTaskCondition(
startedTask.getId(),