shuyouZZ commented on code in PR #38983:
URL: https://github.com/apache/spark/pull/38983#discussion_r1045534968
##########
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala:
##########
@@ -272,17 +272,17 @@ private[history] class FsHistoryProvider(conf: SparkConf,
clock: Clock)
// Disable the background thread during tests.
if (!conf.contains(IS_TESTING)) {
- // A task that periodically checks for event log updates on disk.
- logDebug(s"Scheduling update thread every $UPDATE_INTERVAL_S seconds")
- pool.scheduleWithFixedDelay(
- getRunner(() => checkForLogs()), 0, UPDATE_INTERVAL_S,
TimeUnit.SECONDS)
-
if (conf.get(CLEANER_ENABLED)) {
// A task that periodically cleans event logs on disk.
pool.scheduleWithFixedDelay(
getRunner(() => cleanLogs()), 0, CLEAN_INTERVAL_S, TimeUnit.SECONDS)
}
+ // A task that periodically checks for event log updates on disk.
Review Comment:
I understand it, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]