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

org.apache.curator.x.async.modeled.details.CachedModeledFrameworkImpl.children() does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.1.0
    • None
    • None

    Description

      org.apache.curator.x.async.modeled.details.CachedModeledFrameworkImpl.children() and org.apache.curator.x.async.modeled.details.CachedModeledFrameworkImpl.childrenAsZNodes() do not seem to work. This filter condition looks wrong to me:

      .filter(path -> path.equals(cache.basePath()))

      Getting the children on an uncached model works just fine but on a cached model I always get an empty list. The list that cache.currentChildren(client.modelSpec().path()) returns within the methods looks correct but then there is this strange additional path filtering that throws away everything.

      The test code for that class seems to be in https://github.com/apache/curator/blob/master/curator-x-async/src/test/java/org/apache/curator/x/async/modeled/TestCachedModeledFramework.java. Looks like the children calls are not tested.

      Attachments

        Activity

          People

            randgalt Jordan Zimmerman
            HendrikH Hendrik Haddorp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: