[
https://issues.apache.org/jira/browse/ZOOKEEPER-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16762800#comment-16762800
]
Hudson commented on ZOOKEEPER-3167:
-----------------------------------
SUCCESS: Integrated in Jenkins build ZooKeeper-trunk #390 (See
[https://builds.apache.org/job/ZooKeeper-trunk/390/])
ZOOKEEPER-3167: add an API and the corresponding CLI to get total count (andor:
rev bd09fda553cf9b9334039a7b3bd9dbc7bab70602)
* (edit)
zookeeper-server/src/main/java/org/apache/zookeeper/server/TraceFormatter.java
* (add)
zookeeper-server/src/test/java/org/apache/zookeeper/GetAllChildrenNumberTest.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
* (edit)
zookeeper-server/src/main/java/org/apache/zookeeper/server/ZKDatabase.java
* (edit)
zookeeper-server/src/main/java/org/apache/zookeeper/server/PrepRequestProcessor.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/AsyncCallback.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/ZooDefs.java
* (add)
zookeeper-server/src/main/java/org/apache/zookeeper/cli/GetAllChildrenNumberCommand.java
* (edit)
zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java
* (edit) zookeeper-jute/src/main/resources/zookeeper.jute
* (edit)
zookeeper-server/src/test/java/org/apache/zookeeper/server/DataTreeTest.java
* (edit)
zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeperMain.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxn.java
* (edit) zookeeper-docs/src/main/resources/markdown/zookeeperStarted.md
> 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 40m
> 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)