Github user ajbozarth commented on a diff in the pull request:
https://github.com/apache/spark/pull/15556#discussion_r84166392
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
@@ -399,14 +399,18 @@ private[history] class FsHistoryProvider(conf:
SparkConf, clock: Clock)
}
}
-
/**
* Replay the log files in the list and merge the list of old
applications with new ones
*/
private def mergeApplicationListing(fileStatus: FileStatus): Unit = {
val newAttempts = try {
val bus = new ReplayListenerBus()
- val res = replay(fileStatus, bus)
+ val res = replay(fileStatus, bus,
+ { eventString =>
+ eventString.startsWith (APPL_START_EVENT_PREFIX) ||
+ eventString.startsWith (APPL_END_EVENT_PREFIX)
+ })
--- End diff --
Though this passes scalastyle I think this could be styled cleaner
---
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]