yyqdbngt opened a new pull request, #2856: URL: https://github.com/apache/rocketmq-dashboard/pull/2856
## Summary - Evict expired entries from `ProxyConsumerResolver.proxyAddressCache` on every discovery write - Bound the cache to 128 entries, dropping the earliest-expiring entry when the bound is exceeded - Add regression tests for expired-entry eviction and the size bound ## Why The cache is keyed by the caller-supplied instance id, and each entry carries a 60s TTL that is only *checked* on read — expired entries were never removed from the map. On a long-running Studio instance serving many instances (or with instance ids that churn), every distinct id ever queried left a permanently stale entry behind, so the map grew without bound while holding dead proxy address lists. ## Testing - `mvn -Dtest=ProxyConsumerResolverTest test` → Tests run: 7, Failures: 0, Errors: 0 (5 existing + 2 new regression tests) -- 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]
