You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/10/24 04:13:00 UTC

[jira] [Commented] (ZOOKEEPER-3163) Use session map to improve the performance when closing session in Netty

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661701#comment-16661701 ] 

Hudson commented on ZOOKEEPER-3163:
-----------------------------------

FAILURE: Integrated in Jenkins build Zookeeper-trunk-single-thread #72 (See [https://builds.apache.org/job/Zookeeper-trunk-single-thread/72/])
ZOOKEEPER-3163: Use session map in the Netty to improve close session (hanm: rev 1ce2ca8107438d283581d18d064a25bd6b74adf7)
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxnFactory.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/NettyServerCnxn.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/NettyServerCnxnFactory.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/ServerCnxnFactory.java


> Use session map to improve the performance when closing session in Netty
> ------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-3163
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3163
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>            Reporter: Fangmin Lv
>            Assignee: Fangmin Lv
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.6.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Previously, it needs to go through all the cnxns to find out the session to close, which is O(N), N is the total connections we have.
> This will affect the performance of close session or renew session if there are lots of connections on this server, this JIRA is going to reuse the session map code in NIO implementation to improve the performance.



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