Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/42#discussion_r10642071
--- Diff: core/src/main/scala/org/apache/spark/deploy/master/Master.scala
---
@@ -634,6 +653,36 @@ private[spark] class Master(host: String, port: Int,
webUiPort: Int,
}
}
+ /**
+ * Start a new SparkUI rendered from persisted storage. If this is
unsuccessful for any reason,
+ * return None. Otherwise return the reconstructed UI.
+ */
+ def startPersistedSparkUI(app: ApplicationInfo): Option[SparkUI] = {
--- End diff --
When a completed application gets removed from `completedApps` we should
also remove the UI handlers so that they get garbage collected. Checkout the
lines relating to `RETAINED_APPLICATIONS` inside of `removeApplication`.
Otherwise, over time, this will cause the master to run out of memory because
of all the UI state.
---
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.
---