You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "jifei_yang (JIRA)" <ji...@apache.org> on 2017/10/12 05:52:00 UTC

[jira] [Comment Edited] (PHOENIX-4284) Phoenix connection is not closed.

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

jifei_yang edited comment on PHOENIX-4284 at 10/12/17 5:51 AM:
---------------------------------------------------------------

4.10.0 version has solved this problem! [https://issues.apache.org/jira/browse/PHOENIX-3553]


was (Author: highfei2011@126.com):
4.9.0 version has solved this problem! [https://issues.apache.org/jira/browse/PHOENIX-3553]

> Phoenix connection is not closed.
> ---------------------------------
>
>                 Key: PHOENIX-4284
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4284
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.8.0
>            Reporter: jifei_yang
>            Priority: Trivial
>              Labels: features
>             Fix For: 4.8.0
>
>
> When I call the jdbc close method, I found that the phoenix link still exists and is not closed.
> *The code is as follows:*
> {code:java}
> public class TestHbaseClose {
>     public static void main(String[] args) {
>         Connection conn=null;
>         for (int i = 0; i < 5; i++) {
>             try {
>                 conn= PhoenixConnectionTest.getConnPhoenix();
>                 System.out.println("Before is "+conn);
>                 Thread.sleep(8000);
>                 conn.close();
>                 System.out.println("After is "+conn);
>                 System.out.println(conn.isClosed());
>             } catch (Exception e) {
>                 e.printStackTrace();
>             }
>         }
>     }
> }
> {code}
> *The results of the print are as follows:*
> {noformat}
> Before is org.apache.phoenix.jdbc.PhoenixConnection@2fb5fe30
> After is org.apache.phoenix.jdbc.PhoenixConnection@2fb5fe30
> true
> Before is org.apache.phoenix.jdbc.PhoenixConnection@14bae047
> After is org.apache.phoenix.jdbc.PhoenixConnection@14bae047
> true
> Before is org.apache.phoenix.jdbc.PhoenixConnection@466d49f0
> After is org.apache.phoenix.jdbc.PhoenixConnection@466d49f0
> true
> Before is org.apache.phoenix.jdbc.PhoenixConnection@40021799
> After is org.apache.phoenix.jdbc.PhoenixConnection@40021799
> true
> Before is org.apache.phoenix.jdbc.PhoenixConnection@64f555e7
> After is org.apache.phoenix.jdbc.PhoenixConnection@64f555e7
> true
> {noformat}
> Why is this? Is there a bug fixes in version 4.8.0?
> But the following link mentions this question:
> [ https: //issues.apache.org/jira/browse/PHOENIX-2898]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)