hengyuss opened a new pull request, #7172:
URL: https://github.com/apache/shenyu/pull/7172
Convert registry instance events into complete upstream snapshots after
updating the database. Previously, syncData contained only the changed
instance, which could cause snapshot reconciliation to remove other
valid upstreams. Publish empty snapshots when the last instance is removed.
Use the health-check lock for cache updates and removal. This prevents
health checks from moving upstreams between healthy and unhealthy caches
during reconciliation, causing removed instances to survive cleanup.
Add regression tests for snapshot publication, stale upstream removal,
health-state preservation, and concurrent health checks.
<!-- Describe your PR here; e.g. Fixes #issueNo -->
Fixes: 7165
<!--
Thank you for proposing a pull request. This template will guide you through
the essential steps necessary for a pull request.
-->
Make sure that:
- [x] You have read the [contribution
guidelines](https://shenyu.apache.org/community/contributor-guide).
- [x] You submit test cases (unit or integration tests) that back your
changes.
- [x] Your local test passed `./mvnw clean install
-Dmaven.javadoc.skip=true`.
--
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]