AngersZhuuuu commented on a change in pull request #30131: URL: https://github.com/apache/spark/pull/30131#discussion_r511735253
########## File path: core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala ########## @@ -447,13 +447,13 @@ private[deploy] class Worker( logInfo(s"Successfully registered with master $preferredMasterAddress") registered = true changeMaster(masterRef, masterWebUiUrl, masterAddress) - forwardMessageScheduler.scheduleAtFixedRate( + forwardMessageScheduler.scheduleWithFixedDelay( () => Utils.tryLogNonFatalError { self.send(SendHeartbeat) }, 0, HEARTBEAT_MILLIS, TimeUnit.MILLISECONDS) if (CLEANUP_ENABLED) { logInfo( s"Worker cleanup enabled; old application directories will be deleted in: $workDir") - forwardMessageScheduler.scheduleAtFixedRate( + forwardMessageScheduler.scheduleWithFixedDelay( () => Utils.tryLogNonFatalError { self.send(WorkDirCleanup) }, CLEANUP_INTERVAL_MILLIS, CLEANUP_INTERVAL_MILLIS, TimeUnit.MILLISECONDS) Review comment: Similar like make GC from rate to delay ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org