Skip to content

[SPARK-54607][CORE] Remove unused method toStringHelper from AbstractFetchShuffleBlocks.java - #53341

Closed
LuciferYang wants to merge 1 commit into
apache:masterfrom
LuciferYang:remove-toStringHelper
Closed

[SPARK-54607][CORE] Remove unused method toStringHelper from AbstractFetchShuffleBlocks.java#53341
LuciferYang wants to merge 1 commit into
apache:masterfrom
LuciferYang:remove-toStringHelper

Conversation

@LuciferYang

@LuciferYangLuciferYang commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This pr aims to remove the unused method toStringHelper from AbstractFetchShuffleBlocks.java because it is no longer used after #51572.

Why are the changes needed?

Code cleanup.

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • Pass Github Actions

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

No

@LuciferYangLuciferYang changed the title [SPARK-54607][CORE] Remove the unused method toStringHelper from AbstractFetchShuffleBlocks.java[SPARK-54607][CORE] Remove unused method toStringHelper from AbstractFetchShuffleBlocks.javaDec 5, 2025
}

// checkstyle.off: RegexpSinglelineJava
public ToStringBuilder toStringHelper() {

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.

IIRC, I didn't delete this intentionally because this is public method of public class, @LuciferYang .

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.

I'm wondering if this is safe and you are sure that AbstractFetchShuffleBlocks is not referenced by any case outside of Apache Spark? What about Apache Celeborn or Apache Uniffle?

@LuciferYangLuciferYangDec 6, 2025

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Judging from GitHub's search results, apart from Spark, no other code repositories, including Apache Celeorn and Apache Uniffle, are using AbstractFetchShuffleBlocks.

@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 for Apache Spark 4.2.0.

@LuciferYang

Copy link
Copy Markdown
ContributorAuthor

Merged into master. Thanks @dongjoon-hyun

Sign up for freeto 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

@LuciferYang@dongjoon-hyun