moonming opened a new pull request, #14218:
URL: https://github.com/apache/apisix/pull/14218

   ### Description
   
   A temporary failure while adding or removing a healthcheck target during 
initialization or a checks-configuration rebuild is logged, but the checker is 
still recorded as synchronized with the current upstream version. Without 
another configuration change, the missing target can remain outside active 
probing and continue receiving traffic as an unknown, usable node.
   
   Keep the partially initialized checker and its successful targets, but leave 
its version unreconciled until every target operation succeeds. The existing 
synchronization path then retries. It also re-adds desired targets still marked 
with `purge_time`, so a failed re-add during rebuild cannot silently expire a 
target that remains configured.
   
   This also addresses the caller recovery gap found while validating 
[api7/lua-resty-healthcheck#67](https://github.com/api7/lua-resty-healthcheck/pull/67).
 The dependency version is unchanged here.
   
   #### Which issue(s) this PR fixes:
   
   Fixes #14217
   
   ### Validation
   
   - New Test::Nginx regression covers an initial add failure, a failed re-add 
during checks rebuild followed by the real delayed-cleanup deadline, and a 
failed stale-target removal. It exercises real Admin API requests, event 
transport, active TCP checks, and upstream HTTP traffic. Only one shared-memory 
target-list write is made to return an error in each scenario; backend/network 
responses are not mocked.
   - With the released healthcheck 3.2.3, the original manager fails all three 
response assertions; this fix passes all 18 assertions. The same 18 assertions 
also pass with the candidate healthcheck bug-fix combination.
   - Removing only the retry for targets with `purge_time` makes the rebuild 
regression fail.
   - Existing `healthcheck-incremental-update.t`: 73 assertions pass.
   - Independent review and CI for the submitted head are pending. This PR 
remains draft until those checks are complete.
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [ ] I have updated the documentation to reflect this change (no public 
configuration or API change)
   - [x] I have verified that this change is backward compatible
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to