helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei Xia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HELIX-598) ZkClientPool NPE after closing a connection
Date Thu, 17 Nov 2016 17:46:00 GMT

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

Lei Xia commented on HELIX-598:
-------------------------------

I will take a look at this issue.

> ZkClientPool NPE after closing a connection
> -------------------------------------------
>
>                 Key: HELIX-598
>                 URL: https://issues.apache.org/jira/browse/HELIX-598
>             Project: Apache Helix
>          Issue Type: Bug
>            Reporter: Jemiah Westerman
>            Assignee: Lei Xia
>
> If a client gets a connection from ZkClientPool and then closes the connection by calling
zkClient.close(), any future calls to getZkClient will NPE. The pool attempts to check if
the connection is valid by calling "zkClient.getConnection().getZookeeperState() == States.CONNECTED",
but for a closed connection the getConnection() call returns null.
> Further, there is currently no way to ask the pool itself to close connections. There
is a reset method, but reset simply discards the reference to the connection without closing
it. ZkConnectionPool.reset() should close connections before dereferencing them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message