Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Aug 15, 2017

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
Member Author

viirya commented Aug 15, 2017

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

@SparkQA
Copy link

SparkQA commented Aug 15, 2017

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.

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.

@gatorsmile
Copy link
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 <[email protected]>

Closes #18947 from viirya/SPARK-21721-backport-2.1.
@gatorsmile
Copy link
Member

@viirya Could you close it? Thanks!

@viirya
Copy link
Member Author

viirya commented Aug 15, 2017

Thanks @gatorsmile @dongjoon-hyun

@viirya viirya 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 <[email protected]>

Closes apache#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 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.

4 participants