Today, OptOutQueryCache adds a listener for changes to licence state:
|
licenseState.addListener(() -> this.clear("license state changed")); |
It does not, however, remove this listener when closed. Possibly this is related to this forum issue: https://discuss.elastic.co/t/post-upgrade-issues-6-4-2-es-heap-running-away-6-5-0-too/151096/24 (although I don't understand the full chain of events that leads from this to an OOM).
Today,
OptOutQueryCacheadds a listener for changes to licence state:elasticsearch/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/accesscontrol/OptOutQueryCache.java
Line 46 in 816e6f6
It does not, however, remove this listener when closed. Possibly this is related to this forum issue: https://discuss.elastic.co/t/post-upgrade-issues-6-4-2-es-heap-running-away-6-5-0-too/151096/24 (although I don't understand the full chain of events that leads from this to an OOM).