mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
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:
parent
7563e71e90
commit
a1fd7bc374
30 changed files with 188 additions and 111 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue