[SPARK-54928] Add shuffle migration statistics to MigrationInfo #53706
+133
−13
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?
This adds detailed shuffle migration statistics to block manager decommissioning. A new
MigrationInfo/MigrationStatexposes counts and sizes for discovered, migrated, remaining,and deleted shuffle blocks, and the executor shutdown path uses the new struct. A unit test
verifies the stats and size accounting.
Why are the changes needed?
Decommissioning currently exposes only a boolean for “all blocks migrated.” The additional
stats provide visibility into shuffle migration progress and help diagnose slow/failed
migrations.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
./build/sbt "testOnly org.apache.spark.storage.BlockManagerDecommissionUnitSuite"(Note: the suite passed, but the sbt run ended with
sql-api / Antlr4 / antlr4Generateexit code 1.)Was this patch authored or co-authored using generative AI tooling?
Generated-by: Codex (GPT-5)