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.88k stars 4.63k forks source link

[Fix-16424] K8sUtils#jobExist may cause huge memory usage #16432

Closed ChaoquanTao closed 3 months ago

ChaoquanTao commented 3 months ago

Purpose of the pull request

This pull request optimizes memory usage when invoke K8sUtils#jobExist

Brief change log

K8sUtils#jobExist lists all the pod under the namespace to judge whether job exists, which could cause a huge memory usage. This pull request use k8s get job rather than k8s list job to reduce memory usage.

close #16424

Verify this pull request

This pull request is code cleanup without any test coverage.

boring-cyborg[bot] commented 3 months ago

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

boring-cyborg[bot] commented 3 months ago

Awesome work, congrats on your first merged pull request!