You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(controller): track executor state with LRU eviction instead of id-based skip
The id-based skip in updateExecutorState dropped any executor whose ID
exceeded MaxTrackedExecutorPerApp and never pruned the state map. On
long-running drivers this made executors past the cap invisible and let
stale terminated entries crowd out the cap budget, so on executor churn
Status.ExecutorState could report zero running executors despite live
pods.
Replace it with a size-bounded policy enforced at the end of
updateExecutorState: evict terminated/UNKNOWN entries oldest-ID-first,
and only when the cap is fully occupied by live entries drop the
newest-ID-first (logging a warning). Status.ExecutorState semantics shift
from cumulative to at-most-cap instantaneous.
Add util.ParseExecutorIDFromPodName to recover executor IDs from pod
names for terminated entries whose pods are already gone.
Signed-off-by: shashankchaudhary <shashankch292@gmail.com>
0 commit comments