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

Race condition in client.blockUntilConnected()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0, 2.7.1, 2.8.0
    • 2.9.0
    • Recipes
    • None

    Description

      I'm implementing a Guava service relying on the startAsync feature. I'm using a listener to wait for the INITIALIZED event to fire the guava service notifyStarted method, but sometimes the listener never receives the event if the root path does not exist.

      I've created a repository with a failing test (looping over the failing test to force it).

      repo with tests: https://github.com/samuelgmartinez/curator-treecache-tests.git
      failing test: mvn -Dtest=TreeCacheTest#testListenerNonExistentRootLoop test

      Attachments

        1. failing_test.txt
          30 kB
          Samuel García Martínez

        Activity

          People

            mdrob Mike Drob
            samuelgmartinez Samuel García Martínez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: