Repository navigation
Conversation
…eck-preserve-target-status
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
This draft tracks recovery after independent eviction of a healthcheck registration list. It follows #14261 and depends on api7/lua-resty-healthcheck#76. The two PR branches share history through APISIX commit
fa3e7d62e; the base here ismasterbecause the precursor's head branch belongs to a fork.The manager retains identities of failed removals until an explicit removal can clear the per-target state. This matters when an independently evicted list and a subsequent worker-cache sweep leave an unhealthy state that neither list can enumerate. The narrower write-failure recovery in #14261 is tracked separately.
Regression and current validation
The former retry-suite test for the missing shared list and worker cache now lives in
t/node/healthcheck-target-list-eviction.t. Its original assertions still cover shared unhealthy state after the sweep, timer-driven cleanup, checker reuse, preservation of the surviving unhealthy node, 40/40 successful upstream requests and fresh health after explicit re-add.The test deletes the live shared-list key before the library reads the old registrations for its write, checks that its public listing is empty, and then fails the selected removal write. It uses the real Admin API, etcd, active probes, library worker sweep and HTTP upstreams. With library candidate
9c1a489, the focused test passed 6/6 assertions.The compound case remains gated on a library release providing independent-eviction recovery. The PR still pins the existing dependency and remains draft. Its focused test covers this observed removal and re-add path; broader recovery and multi-worker behavior need separate validation.