cloud-fan commented on code in PR #46302:
URL: https://github.com/apache/spark/pull/46302#discussion_r1681136325
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala:
##########
@@ -176,7 +176,13 @@ 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.
+ if (sc.isLocal) {
+ SparkEnv.get.shuffleManager.unregisterShuffle(shuffleId)
+ } else {
+ sc.shuffleDriverComponents.removeShuffle(shuffleId, false)
Review Comment:
does this work for local mode?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]