Github user tsudukim commented on a diff in the pull request:
https://github.com/apache/spark/pull/3467#discussion_r22270614
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
@@ -180,14 +176,15 @@ private[history] class FsHistoryProvider(conf:
SparkConf) extends ApplicationHis
appListener.startTime.getOrElse(-1L),
appListener.endTime.getOrElse(-1L),
getModificationTime(dir),
- appListener.sparkUser.getOrElse(NOT_STARTED)))
+ appListener.sparkUser.getOrElse(NOT_STARTED),
+ !fs.isFile(new Path(dir.getPath(),
EventLoggingListener.APPLICATION_COMPLETE))))
} catch {
case e: Exception =>
logInfo(s"Failed to load application log data from $dir.", e)
None
}
}
- .sortBy { info => -info.endTime }
+ .sortBy { info => (-info.endTime, -info.startTime) }
--- End diff --
About completed applications, they are sorted by endTime because they have
proper endTime (almost unique).
About incomplete applications, they are sorted by startTime because they
have the same invalid endTime(-1). As the first order is not effective, the
second order is effective.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]