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-43494][CORE] Directly call replicate() for HdfsDataOutputStreamBuilder instead of reflection in SparkHadoopUtil#createFile #41164

Closed
wants to merge 1 commit into from

Conversation

LuciferYang
Copy link
Contributor

What changes were proposed in this pull request?

As discussed in #40945 (comment) and #40945 (comment), replicate() is a very private method of HdfsDataOutputStreamBuilder, so this pr uses case match to further remove the use of reflection in SparkHadoopUtil#createFile.

Why are the changes needed?

Code simplification: remove reflection calls used for compatibility with Hadoop2.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

@github-actions github-actions bot added the CORE label May 14, 2023
@LuciferYang
Copy link
Contributor Author

cc @sunchao @mridulm @pan3793 FYI

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

LGTM

@sunchao sunchao closed this in 98da248 May 15, 2023
@sunchao
Copy link
Member

sunchao commented May 15, 2023

Merged to master, thanks!

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.

Thank you all!

@LuciferYang
Copy link
Contributor Author

Thanks @sunchao @dongjoon-hyun @pan3793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants