You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Hystrix / Resilience4J / Sentinel / RateLimiter plugins NPE when a matched rule has no cached handle #6877
handlerPlugin checks if the new RedisConfigProperties differs from the cached singleton. If it differs, it constructs a new RedisConnectionFactory (which opens Lettuce connection pools via afterPropertiesSet()), stores the new ReactiveRedisTemplate and RedisConfigProperties into Singleton.INST, but never calls destroy() on the OLD LettuceConnectionFactory. The old factory's connection pool (sockets, NIO event loops, threads) is orphaned. Trigger: any admin update that changes the redis URL, password, database, or pool settings.
Each redis config change permanently leaks a Lettuce connection pool. Repeated config updates accumulate leaked connections, eventually exhausting file descriptors / sockets and degrading gateway stability.
Suggested fix
Before installing the new factory, retrieve the old ReactiveRedisTemplate from Singleton.INST, extract its LettuceConnectionFactory (or track the old RedisConnectionFactory), and call destroy() on it before Singleton.INST.single(...).
Related existing
None — distinct from #6645 (RedisRateLimiter fail-open) because this is a resource-leak in the data handler's config-update path, not the rate-limiting execution path.
Activity
github-actions commentedon Aug 4, 2026
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
Please review when you have time. Thank you! 🙏
zhang-arvin commentedon Aug 30, 2026
I will work on this.
[type: bug] Fix NPE in Hystrix/Resilience4J/Sentinel/RateLimiter plug…
[type: bug] Fix NPE in Hystrix/Resilience4J/Sentinel/RateLimiter plug…
[type: bug] Fix NPE in Hystrix/Resilience4J/Sentinel/RateLimiter plug…
[ISSUE #7452] skip caching when cache rule handle is null (#7541)