Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-39965][K8S] Skip PVC cleanup when driver doesn't own PVCs #37433

Closed
wants to merge 2 commits into from
Closed

[SPARK-39965][K8S] Skip PVC cleanup when driver doesn't own PVCs #37433

wants to merge 2 commits into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Aug 8, 2022

What changes were proposed in this pull request?

This PR aims to skip PVC cleanup logic when spark.kubernetes.driver.ownPersistentVolumeClaim=false.

Why are the changes needed?

To simplify Spark termination log by removing unnecessary log containing Exception message when Spark jobs have no PVC permission and at the same time spark.kubernetes.driver.ownPersistentVolumeClaim is false.

Does this PR introduce any user-facing change?

Only in the termination logs of Spark jobs that has no PVC permission.

How was this patch tested?

Manually.

@dongjoon-hyun
Copy link
Member Author

cc @pralabhkumar

@pralabhkumar
Copy link
Contributor

@dongjoon-hyun . Thx for taking this .
LGTM

@dongjoon-hyun
Copy link
Member Author

Could you review this, @viirya ?

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

lgtm

dongjoon-hyun added a commit that referenced this pull request Aug 8, 2022
### What changes were proposed in this pull request?

This PR aims to skip PVC cleanup logic when `spark.kubernetes.driver.ownPersistentVolumeClaim=false`.

### Why are the changes needed?

To simplify Spark termination log by removing unnecessary log containing Exception message when Spark jobs have no PVC permission and at the same time `spark.kubernetes.driver.ownPersistentVolumeClaim` is `false`.

### Does this PR introduce _any_ user-facing change?

Only in the termination logs of Spark jobs that has no PVC permission.

### How was this patch tested?

Manually.

Closes #37433 from dongjoon-hyun/SPARK-39965.

Lead-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Co-authored-by: pralabhkumar <pralabhkumar@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 87b312a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya and @pralabhkumar .

dongjoon-hyun added a commit that referenced this pull request Aug 8, 2022
### What changes were proposed in this pull request?

This PR aims to skip PVC cleanup logic when `spark.kubernetes.driver.ownPersistentVolumeClaim=false`.

### Why are the changes needed?

To simplify Spark termination log by removing unnecessary log containing Exception message when Spark jobs have no PVC permission and at the same time `spark.kubernetes.driver.ownPersistentVolumeClaim` is `false`.

### Does this PR introduce _any_ user-facing change?

Only in the termination logs of Spark jobs that has no PVC permission.

### How was this patch tested?

Manually.

Closes #37433 from dongjoon-hyun/SPARK-39965.

Lead-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Co-authored-by: pralabhkumar <pralabhkumar@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 87b312a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member Author

Merged to master/3.3/3.2.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-39965 branch August 8, 2022 16:59
sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
### What changes were proposed in this pull request?

This PR aims to skip PVC cleanup logic when `spark.kubernetes.driver.ownPersistentVolumeClaim=false`.

### Why are the changes needed?

To simplify Spark termination log by removing unnecessary log containing Exception message when Spark jobs have no PVC permission and at the same time `spark.kubernetes.driver.ownPersistentVolumeClaim` is `false`.

### Does this PR introduce _any_ user-facing change?

Only in the termination logs of Spark jobs that has no PVC permission.

### How was this patch tested?

Manually.

Closes apache#37433 from dongjoon-hyun/SPARK-39965.

Lead-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Co-authored-by: pralabhkumar <pralabhkumar@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 87b312a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants