Repository navigation
Conversation
moonming
marked this pull request as draft
November 24, 2026 12:05
…eck-preserve-target-status
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.
Description
Fixes #14276. Follow-up to #14218.
When only upstream nodes change and an incremental target update fails, rebuilding the live checker discards its worker-local health information. Keep the checker and its current configuration version until the update succeeds. The working-pool timer retries without requiring route traffic.
This change relies on api7/lua-resty-healthcheck#77 to protect the complete target list while replacing it in shared memory. A failed staging write leaves the previous list authoritative. If replacing the primary key deletes its old value, readers can use the committed staged list while the primary remains unavailable. Independent eviction of all registration lists is tracked separately in #14277.
Validation
Tested APISIX master
eb836dbf0with these changes using etcd 3.5.15, the real Admin API, active probes, the library's working timers, and HTTP upstreams. The fault hook targets real shared-dictionary writes. The suites distinguish a rejected update from a committed update whose primary write failed.lruway to cache the validator object for schema. #77 at98c7ed9, the target-list replacement, initial retry and existing incremental-update suites passed 149/149 assertions (23 + 53 + 73).make lint, the repository-widecodespell 2.1.0check, LuaJIT compilation andgit diff --checkpassed.Draft release dependency. The rockspec still pins 3.2.5-0. Upgrade it only after a release containing the library fix is published, then rerun the suites on the published package and verify CI.
Checklist