Skip to content

bug: a partial healthcheck target update can discard a live checker when only upstream nodes change #14276

In progress

Description

@moonming

When only upstream nodes change, the healthcheck manager tries to update the live checker in place. If an addition or removal fails, timer_create_checker falls through to a rebuild even though the checks configuration is unchanged. A fresh checker reading a missing target list can lose the previous checker's knowledge that a configured node was unhealthy.

The checker was already running and had measured the target before the partial update. This is a different trigger from #14217, which covered initialization. There is a related library case in api7/lua-resty-healthcheck#76 where registering a target from a fresh checker overwrites surviving shared health.

Expected behavior: retain the live checker, retry incomplete changes in the background, and preserve known health. Cover both addition and removal with unchanged checks, including re-adding a genuinely removed node. The caller-side fix is being developed in #14261.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions