You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2018/12/10 17:45:00 UTC

[jira] [Reopened] (CURATOR-479) org.apache.curator.x.async.modeled.details.CachedModeledFrameworkImpl.children() does not work

     [ https://issues.apache.org/jira/browse/CURATOR-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jordan Zimmerman reopened CURATOR-479:
--------------------------------------

re-opening. I think the implementation I did was wrong. I'll prepare a new PR

> org.apache.curator.x.async.modeled.details.CachedModeledFrameworkImpl.children() does not work
> ----------------------------------------------------------------------------------------------
>
>                 Key: CURATOR-479
>                 URL: https://issues.apache.org/jira/browse/CURATOR-479
>             Project: Apache Curator
>          Issue Type: Bug
>    Affects Versions: 4.0.1
>            Reporter: Hendrik Haddorp
>            Assignee: Jordan Zimmerman
>            Priority: Major
>             Fix For: 4.1.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)