Skip to content

[SPARK-21721][SQL][Backport-2.1] Clear FileSystem deleteOnExit cache when paths are successfully removed - #18947

Closed
viirya wants to merge 1 commit into
apache:branch-2.1from
viirya:SPARK-21721-backport-2.1
Closed

[SPARK-21721][SQL][Backport-2.1] Clear FileSystem deleteOnExit cache when paths are successfully removed#18947
viirya wants to merge 1 commit into
apache:branch-2.1from
viirya:SPARK-21721-backport-2.1

Conversation

@viirya

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Backport SPARK-21721 to branch 2.1:

We put staging path to delete into the deleteOnExit cache of FileSystem in case of the path can't be successfully removed. But when we successfully remove the path, we don't remove it from the cache. We should do it to avoid continuing grow the cache size.

How was this patch tested?

Added test.

@viirya

Copy link
Copy Markdown
MemberAuthor

cc @yzheng616@gatorsmile Backport #18934 to branch 2.1.

@SparkQA

Copy link
Copy Markdown

Test build #80665 has finished for PR 18947 at commit a4806b3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyundongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM.

@gatorsmile

Copy link
Copy Markdown
Member

LGTM

Merging to 2.1

asfgit pushed a commit that referenced this pull request Aug 15, 2017
…when paths are successfully removed
## What changes were proposed in this pull request?
Backport SPARK-21721 to branch 2.1:
We put staging path to delete into the deleteOnExit cache of FileSystem in case of the path can't be successfully removed. But when we successfully remove the path, we don't remove it from the cache. We should do it to avoid continuing grow the cache size.
## How was this patch tested?
Added test.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes#18947 from viirya/SPARK-21721-backport-2.1.
@gatorsmile

Copy link
Copy Markdown
Member

@viirya Could you close it? Thanks!

@viirya

Copy link
Copy Markdown
MemberAuthor

Thanks @gatorsmile@dongjoon-hyun

@viiryaviirya closed this Aug 15, 2017
jzhuge pushed a commit to jzhuge/spark that referenced this pull request Aug 20, 2018
…when paths are successfully removed
Backport SPARK-21721 to branch 2.1:
We put staging path to delete into the deleteOnExit cache of FileSystem in case of the path can't be successfully removed. But when we successfully remove the path, we don't remove it from the cache. We should do it to avoid continuing grow the cache size.
Added test.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closesapache#18947 from viirya/SPARK-21721-backport-2.1.
@viirya
viirya deleted the SPARK-21721-backport-2.1 branch December 27, 2023 18:34
Sign up for freeto 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.

4 participants

@viirya@SparkQA@gatorsmile@dongjoon-hyun