curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leons727 <>
Subject [GitHub] curator pull request: Performance fix in processChildren()
Date Fri, 03 Oct 2014 21:15:37 GMT
GitHub user leons727 opened a pull request:

    Performance fix in processChildren()

    Current implementation may lead to a large number of calls to java.util.ArrayList.contains()
with a large list, when syncing a large number of path children, as evident from this stack
    "main-EventThread" daemon prio=10 tid=0x00007fd089593800 nid=0x6fbf runnable [0x00007fd0eb3a1000]
    		   java.lang.Thread.State: RUNNABLE
    		        at java.util.ArrayList.indexOf(
    		        at java.util.ArrayList.contains(
    		        at java.util.AbstractSet.removeAll(
    		        at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(
    		        at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(
    		        at org.apache.curator.framework.imps.GetChildrenBuilderImpl$2.processResult(
    		        at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(
    		        at org.apache.zookeeper.ClientCnxn$

You can merge this pull request into a Git repository by running:

    $ git pull master

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #46
commit bea6b80ec2622251156143b45c49a7f7871082cd
Author: Leon Stein <>
Date:   2014-10-03T21:09:27Z

    Performance fix in processChildren()


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message