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 2019/06/19 18:59:34 UTC

[GitHub] [accumulo] ctubbsii commented on issue #1220: Explore removing unused zookeeper watches

ctubbsii commented on issue #1220: Explore removing unused zookeeper watches
URL: https://github.com/apache/accumulo/issues/1220#issuecomment-503687517
 
 
   If this can be done with low-risk and a small amount of code, it could be backported to 2.0.x or even 1.9.x; but without trying, it's hard to know for sure.
   
   I think the basic design would be something like:
   
   1. Have ZooCache keep references to any Watchers,
   2. ZooCache implements a method to match any watchers against some predicate and delete them,
   3. In the Master, when a table is deleted, it triggers deletion of any watchers matching paths to that table's location in ZK, and
   4. In the TServers, trigger deletion of any watchers for tables that don't match any loaded tablets, whenever a tablet is unloaded or periodically.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services