File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
core/src/main/scala/org/apache/spark Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ private[spark] class MapOutputTrackerMaster(
532532 None
533533 }
534534
535- private def incrementEpoch () {
535+ def incrementEpoch () {
536536 epochLock.synchronized {
537537 epoch += 1
538538 logDebug(" Increasing epoch to " + epoch)
Original file line number Diff line number Diff line change @@ -1224,6 +1224,15 @@ class DAGScheduler(
12241224 logInfo(" waiting: " + waitingStages)
12251225 logInfo(" failed: " + failedStages)
12261226
1227+ // This call to increment the epoch may not be strictly necessary, but it is retained
1228+ // for now in order to minimize the changes in behavior from an earlier version of the
1229+ // code. This existing behavior of always incrementing the epoch following any
1230+ // successful shuffle map stage completion may have benefits by causing unneeded
1231+ // cached map outputs to be cleaned up earlier on executors. In the future we can
1232+ // consider removing this call, but this will require some extra investigation.
1233+ // See https://github.com/apache/spark/pull/17955/files#r117385673 for more details.
1234+ mapOutputTracker.incrementEpoch()
1235+
12271236 clearCacheLocs()
12281237
12291238 if (! shuffleStage.isAvailable) {
You can’t perform that action at this time.
0 commit comments