moonming opened a new pull request, #14215: URL: https://github.com/apache/apisix/pull/14215
### Description Upgrade `lua-resty-healthcheck-api7` from `3.2.3-0` to the published [3.2.4-0](https://luarocks.org/lua-resty-healthcheck-api7-3.2.4-0.rockspec), including the initialization-race fix in [api7/lua-resty-healthcheck#64](https://github.com/api7/lua-resty-healthcheck/pull/64). When a worker creates a checker, the library now subscribes to events after loading its targets from shared memory and before polling. Health-state changes delivered during that poll reach the new checker, preventing it from retaining an outdated healthy state from this initialization window. This PR changes one dependency pin. Recovery from events lost during normal operation remains separate upstream work. The reproduced initialization race relates to [apache/apisix#13888](https://github.com/apache/apisix/issues/13888); this PR does not claim to address every possible cause in that report. ### Validation - `git diff --check` and offline `luarocks lint apisix-master-0.rockspec` passed. - Downloaded the official `3.2.4-0.src.rock` and installed it into an empty tree with dependency resolution enabled using LuaRocks 3.12.2 and OpenResty LuaJIT/Lua 5.1. The installed library matches the source package and [v3.2.4 tag](https://github.com/api7/lua-resty-healthcheck/releases/tag/v3.2.4) byte-for-byte. - Ran the installed library in a real two-worker APISIX 3.19 failover/recovery experiment with actual primary/fallback HTTP services and active probes. A constructor-poll scheduling barrier forces the reproduced initialization window without fabricating health events or altering healthcheck shared memory. After the primary failed, both workers sent 40/40 requests to the fallback with HTTP 200. After recovery, both sent 40/40 to the primary with HTTP 200. - The same frozen harness previously reproduced the bug with 3.2.3: worker 1 sent 40/40 requests to the failed primary and received HTTP 503. The harness was unchanged for the published-package run. - Current APISIX master CI is pending; the APISIX 3.19 experiment is not a claim that the full master suite has passed. The constructor-window regressions are covered by the tests added in the upstream fix. This PR adds no APISIX test or documentation file: it changes only the dependency version and introduces no APISIX API or configuration option. ### 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 - [ ] I have added tests corresponding to this change — coverage is in the upstream library, with additional real-traffic verification described above - [ ] I have updated the documentation to reflect this change — no APISIX API or configuration change - [x] I have verified that this change is backward compatible — the published library preserves the API and passed the scoped failover/recovery check above -- 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]
