Skip to content

[SPARK-56702][K8S] Restrict ExecutorPVCResizePlugin to direct pods allocator - #55652

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56702
Closed

dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56702

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented May 1, 2026 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR restricts ExecutorPVCResizePlugin to the direct pods allocator. When spark.kubernetes.allocation.pods.allocator is not direct, init() logs a warning and returns early.

Why are the changes needed?

ExecutorPVCResizePlugin patches individual executor PVCs directly. This only works when Spark owns each pod and its PVCs (direct allocator). For statefulset and deployment allocators, PVCs are governed by the controller's volumeClaimTemplates, so direct patches conflict with the controller.

This mirrors SPARK-56670, which restricted the sibling ExecutorResizePlugin for the same reason.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs with new unit tests.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-56702] Restrict ExecutorPVCResizePlugin to direct pods allocator [SPARK-56702][K8S] Restrict ExecutorPVCResizePlugin to direct pods allocator May 1, 2026
@dongjoon-hyun

dongjoon-hyun commented May 1, 2026 •

Copy link
Copy Markdown
Member Author

All tests passed.

Screenshot 2026-05-01 at 14 53 22

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this PR when you have some time, @huaxingao ?

@huaxingao huaxingao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you so much, @huaxingao ~

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merged to master for Apache Spark 4.2.0.

@dongjoon-hyun
dongjoon-hyun deleted the SPARK-56702 branch May 1, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants