You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andor Molnar (JIRA)" <ji...@apache.org> on 2019/02/07 10:27:00 UTC

[jira] [Resolved] (ZOOKEEPER-3167) add an API and the corresponding CLI to get total count of recursive sub nodes under a specific path

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

Andor Molnar resolved ZOOKEEPER-3167.
-------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.4.5)
                   3.6.0

Issue resolved by pull request 790
[https://github.com/apache/zookeeper/pull/790]

> add an API and the corresponding CLI to get total count of recursive sub nodes under a specific path
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-3167
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3167
>             Project: ZooKeeper
>          Issue Type: New Feature
>    Affects Versions: 3.4.5, 3.5.0
>            Reporter: 田毅群
>            Assignee: maoling
>            Priority: Minor
>              Labels: patch, pull-request-available
>             Fix For: 3.6.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> 1. In production environment, there will be always a situation that there are a lot of recursive sub nodes of one node. We need to count total number of it.
> 2. Now, we can only use API getChildren  which returns the List<String> of first level of sub nodes. We need to iterate every sub node to get recursive sub nodes. It will cost a lot of time.
> 3.  In zookeeper server side, it uses Hasp<String, DataNode> to store node.  The key of the map represents the path of the node. We can iterate the map get total number of all levels of sub nodes of one node.



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