Skip to content

Commit 716e0b1

Browse files
committed
History Server: updated order for multiple attempts(descending start time works everytime)
1 parent 548c753 commit 716e0b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
413413

414414
/**
415415
* Comparison function that defines the sort order for application attempts within the same
416-
* application. Order is: later attempts before earlier attempts.
417-
* The most recent attempt state matches with current state of the app.
416+
* application. Order is: attempts are sorted by descending start time.
417+
* Most recent attempt state matches with current state of the app.
418418
*
419419
* Normally applications should have a single running attempt; but failure to call sc.stop()
420420
* may cause multiple running attempts to show up.

0 commit comments

Comments
 (0)