You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/08/31 15:37:04 UTC
[PR] fix(proxy): evict expired proxy address cache entries [rocketmq-dashboard]
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(proxy): evict expired proxy address cache entries [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #2856: fix(proxy): evict expired proxy address cache entries
URL: https://github.com/apache/rocketmq-dashboard/pull/2856
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(proxy): evict expired proxy address cache entries [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2856:
URL: https://github.com/apache/rocketmq-dashboard/pull/2856#issuecomment-5577097342
This pull request has been automatically closed because there has been no activity for 7 days. If you would like to continue working on this, please reopen the PR with updated changes.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org