Skip to content

Stale failedNodes entries remain after node deletion #203

@rawadhossain

Description

@rawadhossain

Noticed that controller logic has a small inconsistency in how deleted nodes are handled in rule status.

When a node is removed from the cluster, status.nodeEvaluations gets cleaned up correctly, but status.failedNodes can still retain entries for that deleted node. This leads to situations where the rule status continues to report failures for nodes that no longer exist.

From what I can see:

  • cleanupDeletedNodes filters nodeEvaluations
  • but failedNodes isn’t updated accordingly
  • and updateRuleStatus persists those stale entries

So over time, failedNodes can accumulate stale entries.

Ideally, both nodeEvaluations and failedNodes should stay in sync, so once a node is gone, it shouldn’t appear in either.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions