Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
change to use shuffleDriverComponents.removeShuffle
  • Loading branch information
bozhang2820 committed Apr 30, 2024
commit 596c03905a07dabbe9000ff7f06017690fc23389
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ object SQLExecution extends Logging {
shuffleIds.foreach { shuffleId =>
queryExecution.shuffleCleanupMode match {
case RemoveShuffleFiles =>
SparkEnv.get.shuffleManager.unregisterShuffle(shuffleId)
// Do not unregister the shuffle on MapOutputTracker here to trigger stage retry.
// Otherwise, downstream tasks will fail with MetadataFetchFailedException.
sc.shuffleDriverComponents.removeShuffle(shuffleId, false)
case SkipMigration =>
SparkEnv.get.blockManager.migratableResolver.addShuffleToSkip(shuffleId)
case _ => // this should not happen
Expand Down