Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/19582#discussion_r148836744
--- Diff: core/src/main/scala/org/apache/spark/status/LiveEntity.scala ---
@@ -37,8 +37,11 @@ import org.apache.spark.util.kvstore.KVStore
*/
private[spark] abstract class LiveEntity {
+ var lastWriteTime = 0L
+
def write(store: KVStore): Unit = {
store.write(doUpdate())
+ lastWriteTime = System.nanoTime()
--- End diff --
you could also pass the nanoTime down into this, to avoid calling it again
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]