Aias00 opened a new issue, #6782: URL: https://github.com/apache/shenyu/issues/6782
- Severity: Medium - Location: `shenyu-sync-data-center/shenyu-sync-data-websocket/src/main/java/org/apache/shenyu/plugin/sync/data/websocket/handler/DiscoveryUpstreamDataHandler.java:40-42` - Description: `doRefresh` directly calls `data.forEach(... onSubscribe)` without first calling `refresh()` on subscribers. `AuthDataHandler.doRefresh()` (line 43: `authDataSubscribers.forEach(AuthDataSubscriber::refresh)`) and `ProxySelectorDataHandler.doRefresh()` (line 45) both clear stale data first then re-add. `DiscoveryUpstreamDataHandler` is the only handler that skips the clear step. - Impact: On a WebSocket REFRESH event for discovery upstreams, stale upstream data is not cleared before new data is added; old discovery entries no longer present in the refresh payload persist. - Suggested fix: Add `discoveryUpstreamDataSubscribers.forEach(DiscoveryUpstreamDataSubscriber::refresh)` as the first line of `doRefresh`, matching `AuthDataHandler` and `ProxySelectorDataHandler`. - 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]
