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

Handle graceful close of ZookKeeper client waiting for all resources to be released

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Client
    • Labels:
      None

      Description

      Ths idea is to leverage the new ZooKeeper#close(timeoutMs) method introduced with ZOOKEEPER-2697.

      This new method waits for the internal threads to finish, this way the client is sure that all internal resources handled but low-level ZooKeeper client have been released.

      This is very useful in tests because the user can wait for the test environment to be cleared.

      In some cases you want to return from the 'close' method as soon as possibile. In ZooKeeper a new specific method as been added in order to let the user ask for a specific behaviour.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eolivelli Enrico Olivelli
                Reporter:
                eolivelli Enrico Olivelli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: