You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "David Mollitor (JIRA)" <ji...@apache.org> on 2019/03/28 20:49:00 UTC

[jira] [Created] (ZOOKEEPER-3340) Improve Queue Usage in QuorumCnxManager.java

David Mollitor created ZOOKEEPER-3340:
-----------------------------------------

             Summary: Improve Queue Usage in QuorumCnxManager.java
                 Key: ZOOKEEPER-3340
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3340
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: David Mollitor


I was recently profiling a on a ZK Quorum Leader in a low-volume environment and noticed that most of its time was spent in {{QuorumCnxManager#RecvWorker}}.  Nothing wrong with that, but it did draw my attention to it.  I noticed that {{Queue}} interactions are a bit... verbose.  I would like to propose that we streamline this area of the code.
 

[https://github.com/apache/zookeeper/blob/master/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java#L1291-L1309]



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