Description
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.
Attachments
Issue Links
- relates to
-
ZOOKEEPER-1035 CREATOR_ALL_ACL does not work together with IPAuthenticationProvider
- Open
-
ZOOKEEPER-1055 check for duplicate ACLs in addACL() and create()
- Closed
-
ZOOKEEPER-33 Better ACL management
- Closed