134a7d7eb9
### What changes were proposed in this pull request? `KubernetesClusterManager` and `ExecutorPodsLifecycleManager` are private Spark classes. This PR aims to move `Guava Cache` from a constructor parameter to private field of `ExecutorPodsLifecycleManager`. ### Why are the changes needed? 1. Although `KubernetesClusterManager` creates `Guava Cache`, only `ExecutorPodsLifecycleManager` uses it. 2. Although `ExecutorPodsLifecycleManager` is a Spark private class, when some users implement a new cluster manager with `ExternalClusterManager` for K8s, they can reuse `ExecutorPodsLifecycleManager`. In this case, `Guava Cache` is not good as an interface because it's a shaded class. ### Does this PR introduce _any_ user-facing change? No. This is an Spark private. ### How was this patch tested? Pass the existing UTs. Closes #31297 from dongjoon-hyun/SPARK-34206. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> |
||
---|---|---|
.. | ||
core | ||
docker/src/main/dockerfiles/spark | ||
integration-tests |