Commit 20de5e7
[SPARK-54884][CORE][TESTS] Remove private function
### What changes were proposed in this pull request?
This pr removes the private function `totalRunningTasksPerResourceProfile` from `ExecutorAllocationManager` and refactors `ExecutorAllocationManagerSuite` so that it no longer relies on this private function, which was solely used for testing purposes.
### Why are the changes needed?
Code cleanup.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Pass Github Actions
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53662 from LuciferYang/remove-totalRunningTasksPerResourceProfile.
Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Yi Wu <yi.wu@databricks.com>totalRunningTasksPerResourceProfile from ExecutorAllocationManager
1 parent 2f12bc6 commit 20de5e7
2 files changed
Lines changed: 4 additions & 11 deletions
File tree
- core/src
- main/scala/org/apache/spark
- test/scala/org/apache/spark
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 332 | | |
339 | 333 | | |
340 | 334 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | | - | |
1928 | | - | |
1929 | 1927 | | |
1930 | 1928 | | |
1931 | 1929 | | |
| |||
2022 | 2020 | | |
2023 | 2021 | | |
2024 | 2022 | | |
2025 | | - | |
2026 | | - | |
2027 | | - | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
2028 | 2027 | | |
2029 | 2028 | | |
2030 | 2029 | | |
| |||
0 commit comments