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-50417] Make number of FallbackStorage sub-directories configurable #48960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EnricoMi
Copy link
Contributor

What changes were proposed in this pull request?

This adds option spark.storage.decommission.fallbackStorage.subPaths that allows to control the maximum number of directories created by the FallbackStorage per shuffle.

Why are the changes needed?

The current implementation creates a directory foreach shuffle file that is being copied. For instance, a 100,000 partition shuffle creates 100,000 directories, each containing a single file. While S3 is very happy about this strategy, other filesystem might unnecessarily struggle. Some control about the upper limit of directories is useful.

Does this PR introduce any user-facing change?

Adds option spark.storage.decommission.fallbackStorage.subPaths.

How was this patch tested?

Added unit tests.

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

No

@github-actions github-actions bot added the CORE label Nov 25, 2024
@EnricoMi
Copy link
Contributor Author

cc @dongjoon-hyun

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.

Could you elaborate on your justification a little more, @EnricoMi ?

While S3 is very happy about this strategy, other filesystem might unnecessarily struggle. Some control about the upper limit of directories is useful.

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