Github user gengliangwang commented on a diff in the pull request:
https://github.com/apache/spark/pull/19751#discussion_r151607855
--- Diff: core/src/main/scala/org/apache/spark/status/LiveEntity.scala ---
@@ -40,8 +41,8 @@ private[spark] abstract class LiveEntity {
var lastWriteTime = 0L
- def write(store: KVStore, now: Long): Unit = {
- store.write(doUpdate())
+ def write(store: ElementTrackingStore, now: Long, checkTriggers: Boolean
= false): Unit = {
+ store.write(doUpdate(), checkTriggers || lastWriteTime == 0L)
--- End diff --
can you specify why does it check triggers on the first write?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]