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

PathChildrenCache consumes an entire thread all the time no matter what

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-incubating
    • 2.0.1-incubating
    • Recipes
    • None

    Description

      PathChildrenCache currently takes an Executor, but only to fire off a Runnable that does a blocking while loop waiting for work. This means that you must have one thread per PathChildrenCache, which is not that great.

      PathChildrenCache should just use the Executor's work queuing mechanism to enqueue work items instead of maintaining its own work queue mechanism.

      Attachments

        1. CURATOR-21.patch
          14 kB
          Eric Tschetter
        2. CURATOR-21-docs.patch
          3 kB
          Eric Tschetter
        3. CURATOR-21-Fix_watcher_race.patch
          9 kB
          Eric Tschetter

        Activity

          People

            randgalt Jordan Zimmerman
            cheddar Eric Tschetter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: