moonming opened a new issue, #14217: URL: https://github.com/apache/apisix/issues/14217
### Description Healthchecker initialization logs a failed `add_target()` call but still publishes the checker with the current resource version. Subsequent requests see that version as reconciled and do not retry the missing target. A temporary write failure can therefore leave a configured node outside active health checking until the upstream configuration changes. The relevant paths are `create_checker()` and `timer_create_checker()` in [healthcheck_manager.lua at 64d831f](https://github.com/apache/apisix/blob/64d831f4f389ad652eb9b180fd4fd5f9c794b5b0/apisix/healthcheck_manager.lua). Incremental synchronization already reports whether target updates succeeded; initialization does not preserve that information. ### Reproduction This was reproduced while validating [api7/lua-resty-healthcheck#67](https://github.com/api7/lua-resty-healthcheck/pull/67), which returns an error rather than publishing a target when its initial shared-memory state cannot be written. - Run real APISIX 3.19 with the current `healthcheck_manager.lua`, active checks, and one reachable and one unavailable upstream node. - Inject one `no memory` return for the unavailable target's initial state write. This is a localized shared-memory fault injection; backend responses and network traffic are real. - With the candidate healthcheck change, the shared target list has only one node. After ten seconds, there have still been only the original two add attempts, and the missing node is reported as `target not found`. - APISIX treats that unknown health as usable: 20 of 40 requests return 502. With the released healthcheck 3.2.4 under the same injected failure, the node remains listed, probes mark it unhealthy, and all 40 requests succeed. - Keeping the partially initialized checker at an unreconciled version allows the existing synchronization path to retry: the third add attempt restores the missing node, probes mark it unhealthy, and all 40 requests succeed with the candidate library too. ### Expected behavior Failed target additions or removals should remain eligible for retry without requiring a configuration update. Successful target state should be retained. On a checks-configuration rebuild, surviving targets still marked for delayed removal also need a successful re-add before the version can be considered reconciled. This issue tracks the APISIX caller recovery gap separately from the healthcheck library fix. The candidate library version has not been released. -- 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]
