[CELEBORN-2174] Remove partitionSplitEnabled from ReserveSlots and FileInfo#3505
Open
SteNicholas wants to merge 1 commit intoapache:mainfrom
Open
[CELEBORN-2174] Remove partitionSplitEnabled from ReserveSlots and FileInfo#3505SteNicholas wants to merge 1 commit intoapache:mainfrom
SteNicholas wants to merge 1 commit intoapache:mainfrom
Conversation
Contributor
|
LGTM~ |
60ee96f to
23e388a
Compare
23e388a to
aa34c01
Compare
There was a problem hiding this comment.
Pull request overview
This pull request removes the partitionSplitEnabled parameter from ReserveSlots messages and FileInfo classes as a cleanup effort. Since version 0.6.0, Celeborn enables shuffle partition split by default for MapPartition, making this parameter unnecessary. This change simplifies the codebase by removing configuration that is no longer needed.
Changes:
- Removed
partitionSplitEnabledfield fromFileInfo,DiskFileInfo, andMemoryFileInfoclasses - Removed
partitionSplitEnabledparameter fromReserveSlotsprotocol message and related serialization/deserialization code - Removed
partitionSplitEnabledfromPartitionDataWriterContextclass - Updated all test files to use the modified constructors and method signatures
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| common/src/main/java/org/apache/celeborn/common/meta/FileInfo.java | Removed partitionSplitEnabled field, getter, and setter methods |
| common/src/main/java/org/apache/celeborn/common/meta/DiskFileInfo.java | Removed partitionSplitEnabled parameter from constructors; changed import from Arrays to Collections |
| common/src/main/java/org/apache/celeborn/common/meta/MemoryFileInfo.java | Removed partitionSplitEnabled parameter from constructors |
| common/src/main/scala/org/apache/celeborn/common/protocol/message/ControlMessages.scala | Removed partitionSplitEnabled from ReserveSlots message and its serialization/deserialization |
| common/src/main/scala/org/apache/celeborn/common/util/PbSerDeUtils.scala | Removed partitionSplitEnabled from FileInfo serialization/deserialization; refactored to use pattern matching |
| worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionDataWriterContext.java | Removed partitionSplitEnabled field, getter, constructor parameter, and toString representation |
| worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/MapPartitionDataReader.java | Simplified stream release logic to always send BufferStreamEnd |
| worker/src/main/java/org/apache/celeborn/service/deploy/worker/storage/PartitionFilesSorter.java | Removed partitionSplitEnabled from MemoryFileInfo constructor call |
| worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala | Removed partitionSplitEnabled parameter from reserveSlots methods |
| worker/src/main/scala/org/apache/celeborn/service/deploy/worker/PushDataHandler.scala | Removed conditional check for partitionSplitEnabled before HARD_SPLIT logic |
| worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala | Removed partitionSplitEnabled from createPartitionDataWriter and file creation methods |
| worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StoragePolicy.scala | Removed partitionSplitEnabled from createMemoryFileInfo and createDiskFile calls |
| client/src/main/scala/org/apache/celeborn/client/LifecycleManager.scala | Removed partitionSplitEnabled = true from ReserveSlots message creation |
| common/src/test/scala/org/apache/celeborn/common/util/PbSerDeUtilsTest.scala | Updated test to not set partitionSplitEnabled in protocol buffer |
| worker/src/test/* | Updated all test files to use modified constructors without partitionSplitEnabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
Ping @RexXiong. |
aa34c01 to
fcd2610
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Remove
partitionSplitEnabledfromReserveSlotsandFileInfo. Address comment #3492 (comment).Why are the changes needed?
Since 0.6.0, Celeborn removed
celeborn.client.shuffle.mapPartition.split.enabledto enable shuffle partition split at default for MapPartition. Therefore,partitionSplitEnabledofReserveSlotsandFileInfois unnecessary because MapPartition enables partition split by default.Does this PR resolve a correctness bug?
No
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI.