Aias00 opened a new issue, #6780: URL: https://github.com/apache/shenyu/issues/6780
- Severity: Medium - Location: `shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/refresh/DiscoveryUpstreamDataRefresh.java:55-61` - Description: When data is empty, the method logs `"clear all plugin data cache"` (also a copy-paste error in the log message) and returns without calling `discoveryUpstreamDataSubscribers.forEach(DiscoveryUpstreamDataSubscriber::refresh)`. `AppAuthDataRefresh` and `MetaDataRefresh` do call `refresh()` on subscribers when data is empty. The `DiscoveryUpstreamDataSubscriber` interface has a `refresh()` default method for exactly this. - Impact: When admin sends an empty discovery upstream group via HTTP sync (all upstreams removed), the gateway keeps stale discovery data. - Suggested fix: Add `discoveryUpstreamDataSubscribers.forEach(DiscoveryUpstreamDataSubscriber::refresh)` in the empty branch before returning. - Confidence: High --- _Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._ -- 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]
