From dev-return-76257-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Sat Nov 24 13:52:38 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7E91818062B for ; Sat, 24 Nov 2018 13:52:37 +0100 (CET) Received: (qmail 20286 invoked by uid 500); 24 Nov 2018 12:52:36 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 20275 invoked by uid 99); 24 Nov 2018 12:52:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2018 12:52:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BFF96E0F7D; Sat, 24 Nov 2018 12:52:35 +0000 (UTC) From: TyqITstudent To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #720: add an API to get total count of recursive sub ... Content-Type: text/plain Message-Id: <20181124125235.BFF96E0F7D@git1-us-west.apache.org> Date: Sat, 24 Nov 2018 12:52:35 +0000 (UTC) GitHub user TyqITstudent reopened a pull request: https://github.com/apache/zookeeper/pull/720 add an API to get total count of recursive sub nodes of one node 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. Now, we can only use API getChildren which returns the List 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. In zookeeper server side, it uses Hasp 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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/TyqITstudent/zookeeper ZOOKEEPER-3167 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zookeeper/pull/720.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #720 ---- commit f21dab121f255959032148e6608b84c12ed0bd68 Author: tianyiqun <891707263@...> Date: 2018-11-24T06:39:30Z add an API to get total count of recursive sub nodes of one node commit 1b527726f52499aa943de1ec63de4ce9967300cf Author: tianyiqun <891707263@...> Date: 2018-11-24T06:39:30Z add an API to get total count of recursive sub nodes of one node commit 67760fed151fce49f29fabc577eef19216cef94b Author: tianyiqun <891707263@...> Date: 2018-11-24T11:12:43Z Merge branch 'ZOOKEEPER-3167' of https://github.com/TyqITstudent/zookeeper into ZOOKEEPER-3167 ---- ---