zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 田毅群 (JIRA) <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-3167) add an API to get total count of recursive sub nodes of one node
Date Sun, 04 Nov 2018 04:15:00 GMT

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

田毅群 updated ZOOKEEPER-3167:
---------------------------
    Attachment:     (was: 0001-add-get-recursive-children-node-api.patch)

> add an API to get total count of recursive sub nodes of one node
> ----------------------------------------------------------------
>
>                 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: 田毅群
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.4.5
>
>
> 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)

Mime
View raw message