Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50481][CORE] Improve
SortShuffleManager.unregisterShuffle
to…
… skip checksum file logic if checksum is disabled ### What changes were proposed in this pull request? This PR aims to improve `SortShuffleManager.unregisterShuffle` to skip checksum file logic if checksum is disabled. ### Why are the changes needed? `SortShuffleManager.unregisterShuffle` depends on `IndexShuffleBlockResolver.removeDataByMap`. https://github.com/apache/spark/blob/7b974ca758961668a26a1d0c60c91614dac38742/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleManager.scala#L185-L192 It always tries to check and delete the checksum files even when they doesn't exists. https://github.com/apache/spark/blob/7b974ca758961668a26a1d0c60c91614dac38742/core/src/main/scala/org/apache/spark/shuffle/IndexShuffleBlockResolver.scala#L198-L201 This PR aims to improve Spark by removing these operations when `checksum` is disabled. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49046 from dongjoon-hyun/SPARK-50481. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information