Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-477

Ability to turn off Zk Watches in Curator Framework

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.1.0
    • Framework
    • None

    Description

      In our use case, we use TreeCache to get Zk Data periodically. We start TreeCache read data and close it. In this use case, The ZkWatchManager of ZooKeeper class keeps growing for every TreeCache operation because new TreeNode objects are created and added there leading to a memory leak. Also since we do not want the Watcher to periodically watch, this creates unnecessary background operations.

      Can we introduce a builder flag in CuratorFramework's Builder some thing called "createZkWatches" that we can use to turn the watchers off? The default would be set to true to retain the current behaviour.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramachavali Rama Chavali
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: