Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2515

SessionTrackerImpl non-daemon thread slow to shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.6
    • None
    • None

    Description

      While calling SessionTrackerImpl#shutdown does result in the thread eventually stopping, it takes up to expirationInterval (3 seconds, by default) for the thread to finally die.

      Since the thread is not a daemon, this delays the shutdown of any application that makes use of ZooKeeper.

      I believe the issue is simple to fix: if the shutdown method notified the thread from within object's monitor then this issue will be resolved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulmillar Paul Millar
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: