https://github.com/apache/spark
Revision 651f5da7d58554ebd4b15c5b0204acf2d08ca439 authored by Dongjoon Hyun on 05 December 2022, 09:09:50 UTC, committed by Dongjoon Hyun on 05 December 2022, 09:20:12 UTC
This PR aims to prevent `getReusablePVCs` from choosing recently created PVCs in the very previous batch by excluding newly created PVCs whose creation time is within `spark.kubernetes.allocation.batch.delay`.

In case of slow K8s control plane situation where `spark.kubernetes.allocation.batch.delay` is too short relatively or `spark.kubernetes.executor.enablePollingWithResourceVersion=true` is used, `onNewSnapshots` may not return the full list of executor pods created by the previous batch. This sometimes makes Spark driver think the PVCs in the previous batch are reusable for the next batch.

No.

Pass the CIs with the newly created test case.

Closes #38912 from dongjoon-hyun/SPARK-41388.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit e234cd8276a603ab8a191dd078b11c605b22a50c)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 5e68c98
History
Tip revision: 651f5da7d58554ebd4b15c5b0204acf2d08ca439 authored by Dongjoon Hyun on 05 December 2022, 09:09:50 UTC
[SPARK-41388][K8S] `getReusablePVCs` should ignore recently created PVCs in the previous batch
Tip revision: 651f5da

README.md

back to top