You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/05/17 14:08:19 UTC

[GitHub] [accumulo] milleruntime commented on a diff in pull request #2714: Update documentation with purpose of the "cache"

milleruntime commented on code in PR #2714:
URL: https://github.com/apache/accumulo/pull/2714#discussion_r874865319


##########
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCacheFactory.java:
##########
@@ -26,9 +26,14 @@
 
 /**
  * A factory for {@link ZooCache} instances.
+ * <p>
+ * Implementation note: We are using this "cache" to track all the instances that have been created,
+ * so we can explicitly close them when the last legacy client has gone away. This is part of the
+ * "SingletonManager" code, and it is likely that ZooCacheFactory and ZooKeeperInstance can be
+ * removed when legacy client code support is no longer required.

Review Comment:
   ```suggestion
    * <p>
    * A "cache" that tracks all ZooCache instances that have been created, to be explicitly closed.  
    * This class supports legacy client code as part of the SingletonManager. It is likely that 
    * ZooCacheFactory and ZooKeeperInstance can be removed when legacy client code support is no longer required.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org