Server never forgets old ACL lists
----------------------------------
Key: ZOOKEEPER-1173
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1173
Project: ZooKeeper
Issue Type: Bug
Components: server
Reporter: Thomas Koch
Assignee: Thomas Koch
The ACL stuff in DataTree.java reimplements a kind of reference system. The
idea may have been to save memory for equal ACL lists. However there's no code
that ever removes an ACL list that is not used anymore.
Related:
- The ACL stuff could be in a separate class so that DataTree.java is not such
a big beast anymore.
- It's risky to have mutable objects (list) as keys in a HashMap.
An idea to solve this: Have ACL lists as members of the datatree nodes. Lookup
already existing ACL lists in a java.util.WeakHashMap.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira