Skip to content

Conversation

@maheshk114
Copy link

What changes were proposed in this pull request?

In method FallbackStorage.open, file open is guarded by Utils.tryWithResource to avoid file handle leakage incase of failure during read.

Why are the changes needed?

To avoid file handle leakage in case of read failure.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UTs

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

No

@github-actions github-actions bot added the CORE label Mar 22, 2024
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-47521][CORE] Fix file handle leakage during shuffle data read from external storage. [SPARK-47521][CORE] Use Utils.tryWithResource during reading shuffle data from external storage. Mar 22, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @maheshk114 .
Merged to master/3.5/3.4 for Apache Spark 4.0.0/3.5.2/3.4.3.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-47521][CORE] Use Utils.tryWithResource during reading shuffle data from external storage. [SPARK-47521][CORE] Use Utils.tryWithResource during reading shuffle data from external storage Mar 22, 2024
dongjoon-hyun pushed a commit that referenced this pull request Mar 22, 2024
…e data from external storage

### What changes were proposed in this pull request?

In method FallbackStorage.open, file open is guarded by Utils.tryWithResource to avoid file handle leakage incase of failure during read.

### Why are the changes needed?

To avoid file handle leakage in case of read failure.

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

No

### How was this patch tested?

Existing UTs

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

No

Closes #45663 from maheshk114/SPARK-47521.

Authored-by: maheshbehera <maheshbehera@microsoft.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 2456690)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun pushed a commit that referenced this pull request Mar 22, 2024
…e data from external storage

### What changes were proposed in this pull request?

In method FallbackStorage.open, file open is guarded by Utils.tryWithResource to avoid file handle leakage incase of failure during read.

### Why are the changes needed?

To avoid file handle leakage in case of read failure.

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

No

### How was this patch tested?

Existing UTs

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

No

Closes #45663 from maheshk114/SPARK-47521.

Authored-by: maheshbehera <maheshbehera@microsoft.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 2456690)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun
Copy link
Member

Welcome to the Apache Spark community. Congratulations for your first commit.
I added you to the Apache Spark contributor group and assigned SPARK-47521 to you, @maheshk114 .

@maheshk114
Copy link
Author

Welcome to the Apache Spark community. Congratulations for your first commit. I added you to the Apache Spark contributor group and assigned SPARK-47521 to you, @maheshk114 .

Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants