apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.73k stars 4.58k forks source link

[Bug] [dolphinscheduler-master] AsyncMasterTask may causing a ramp-up in thread pool invocations #16460

Closed Dyqer closed 1 month ago

Dyqer commented 1 month ago

Search before asking

What happened

Here are some mistakes about AsyncMasterTask

  1. AsyncTask execute times won't be increased
  2. The timeout unit is incorrect, the timeout was supposed to be in minutes, but in the code, it was set to seconds.
  3. If a dependent task is set with a timeout, its execution frequency will increase as it gets closer to the timeout, it will cause DB down if you have lots tasks.

What you expected to happen

  1. we should schedule master async task with a fixed delay instead of fixed rate to avoid service crashes caused by resource exhaustion

How to reproduce

  1. create some denpendent Task with timeout (like 1 minutes)
  2. watch the execute times for async task execution context.

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

Code of Conduct

SbloodyS commented 1 month ago

cc @ruanwenjun