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

SessionTrackerImpl non-daemon thread slow to shutdown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated: