Skip to content

registrar (kubernetes backend): a flushed write-behind register op is never released, so two replicas can serve different versions of the same endpoint #1145

Closed

Description

@bpalermo

Noticed while fixing #1124 (PR #1142), not verified by a test. On the kubernetes backend a write-behind register op "flushes" as a no-op; collectDueOps skips flushed ops before its max-age check, and Overlay releases one only when the pod-derived endpoint is proto.Equal to the agent's version. So the receiving replica may keep serving the AGENT's version of an endpoint (its overlay) while the other replica serves the POD-derived one, until the agent unregisters it — any field the agent sets that the pod-derived view does not reproduce exactly diverges between replicas. To do: write a test that registers an endpoint whose agent view differs from the pod-derived view on one replica and compares both replicas' snapshots; then either make the overlay expire by max age on this backend too, or make the pod-derived view the single source of truth and drop the overlay for the kubernetes backend.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions