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
fix: update KubernetesFromConfigMapProcessor for Caffeine 3.x compatibility
Replace async refresh() with synchronous put() and explicit invalidate()
for keys removed from ConfigMap. This fixes a race condition introduced
in Caffeine 3.x where asMap().get() returns null for expired entries
during an in-flight async refresh, causing KubernetesFromConfigMapTest
to fail intermittently.
Changes:
- Replace LoadingCache with Cache (CacheLoader no longer needed)
- Remove expireAfterWrite (entries managed explicitly by scheduler)
- Use put() to synchronously write ConfigMap data into cache
- Use invalidate() to remove keys no longer present in ConfigMap
- Remove ConfigMapGetterCacheLoader inner class
Agent-Logs-Url: https://github.com/kubernetes-client/java/sessions/07e0048a-55b8-42c1-809c-ff20e3bd4837
Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
0 commit comments