Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/1222#discussion_r15477287
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
@@ -87,8 +94,12 @@ private[history] class FsHistoryProvider(conf:
SparkConf) extends ApplicationHis
}
checkForLogs()
- logCheckingThread.setDaemon(true)
- logCheckingThread.start()
+
+ // Treat 0 as "disable the background thread", mostly for testing.
+ if (UPDATE_INTERVAL_MS > 0) {
--- End diff --
Doesn't an interval of 0 technically mean it's constantly checking? It
might make sense to make the test value MAX_INTEGER or something huge
---
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.
---