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-37978][SHUFFLE] Remove the unnecessary ChunkFetchFailureException class #35267

Closed
wants to merge 1 commit into from

Conversation

weixiuli
Copy link
Contributor

@weixiuli weixiuli commented Jan 21, 2022

What changes were proposed in this pull request?

Remove the unnecessary ChunkFetchFailureException to clean up the code.

Why are the changes needed?

The ChunkFetchFailureException is unnecessary and can be replaced by RuntimeException.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Passed CI is enough.

@github-actions github-actions bot added the CORE label Jan 21, 2022
@weixiuli weixiuli changed the title [SPARK-37978][SHUFFLE] Remove the useless ChunkFetchFailureException class [SPARK-37978][SHUFFLE] Remove the unnecessary ChunkFetchFailureException class Jan 21, 2022
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.

First, may I ask why do you want to remove this? It just gave us more information.

The ChunkFetchFailureException is unnecessary and can be replaced by RuntimeException.

Second, are you sure about removal of this public class without any deprecation process?

@weixiuli
Copy link
Contributor Author

First, may I ask why do you want to remove this? It just gave us more information.

The message of RuntimeException is enough for us,we just reference to exception handling for RpcFailure/StreamFailure .

Second, are you sure about removal of this public class without any deprecation process?

Yes, the class is only used here.

@dongjoon-hyun

@dongjoon-hyun
Copy link
Member

It seems that you are ignoring the downstream or user codes which might catch ChunkFetchFailureException. This PR will lead a compilation error or ClassNotFound error in Apache Spark 3.3 in those downstream code. It could be considered as a regression in the user perspective.

Yes, the class is only used here.

In principle, Apache Spark has a deprecation process for the all user facing changes to avoid any surprise in the production. Please take a look at the community policy.

FYI, historically, Apache Spark community tried to clean up many things at 3.0 and later recovered back many things to avoid those kind of hassle. For this one, I'm not sure about the benefit. Is this worth of the removal cost?

@weixiuli
Copy link
Contributor Author

Ok, i see. Thank you very much @dongjoon-hyun

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dongjoon-hyun
Copy link
Member

Let me close this PR first. We can continue the discussion about this topic in this PR or JIRA, and reopen this if needed.

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