Skip to content

[AURON #2236]support compile with Celeborn 0.6 and spark 4.0#2243

Open
ftong2020 wants to merge 3 commits intoapache:masterfrom
ftong2020:celeborn-0-6-with-spark-4-0
Open

[AURON #2236]support compile with Celeborn 0.6 and spark 4.0#2243
ftong2020 wants to merge 3 commits intoapache:masterfrom
ftong2020:celeborn-0-6-with-spark-4-0

Conversation

@ftong2020
Copy link
Copy Markdown

Which issue does this PR close?

Closes #2236

Rationale for this change

Spark 4.0 has been release for over 1 year, and celeborn 0.6 provides official spark 4.0 support.

This change will add spark 4.0 support when auron is compiled with spark 4.0 and celeborn 0.6.

Spark 4.1 supported is not included in this PR since latest celeborn version does not support this configuration. Spark 4.1 also changed signature of Mapstatus.apply(), which demands heavy changes to codebase.

What changes are included in this PR?

Are there any user-facing changes?

no

How was this patch tested?

Tested in our staging env

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Spark 4.0 compilation support when building Auron with Celeborn 0.6 by updating Spark-version-gated APIs and aligning Spark 4’s shuffle-write execution behavior with existing Spark 3.x assumptions.

Changes:

  • Extend @sparkver gating for getPartitionLengths() to include Spark 4.0 in Celeborn 0.6 and RSS shuffle writer implementations.
  • Update NativeRDD.compute() to also defer execution for RSS_SHUFFLE_WRITER plans on Spark 4+ (to avoid early execution under the refined ShuffleWriteProcessor flow).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
thirdparty/auron-celeborn-0.6/src/main/scala/org/apache/spark/sql/execution/auron/shuffle/celeborn/AuronCelebornShuffleWriter.scala Adds Spark 4.0 to the version-gated getPartitionLengths() override for Celeborn 0.6 integration.
spark-extension/src/main/scala/org/apache/spark/sql/execution/auron/shuffle/AuronRssShuffleWriterBase.scala Adds Spark 4.0 to the version-gated getPartitionLengths() override for RSS shuffle writer base.
spark-extension/src/main/scala/org/apache/spark/sql/auron/NativeRDD.scala Extends the Spark 4+ shuffle-write deferral logic to cover RSS shuffle writer plans as well.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spark-extension/src/main/scala/org/apache/spark/sql/auron/NativeRDD.scala Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@yew1eb
Copy link
Copy Markdown
Contributor

yew1eb commented May 7, 2026

@ftong2020 Thanks for the contribution! Please update the PR title to include the issue ID: [AURON #2236]

@ftong2020 ftong2020 changed the title support compile with Celeborn 0.6 and spark 4.0 [AURON #2236]support compile with Celeborn 0.6 and spark 4.0 May 8, 2026
@ftong2020
Copy link
Copy Markdown
Author

@ftong2020 Thanks for the contribution! Please update the PR title to include the issue ID: [AURON #2236]

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not compile auron targeting scalar 2.13 and spark 4 when celeborn is enabled

3 participants