phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LiLi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-7) after Connection close, there are still 10 phoenix threads alive
Date Tue, 21 Jan 2014 05:31:27 GMT
LiLi created PHOENIX-7:
--------------------------

             Summary: after Connection close, there are still 10 phoenix threads alive
                 Key: PHOENIX-7
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: jdk 1.7_upate 45 Ubuntu 11.10
phoenix 2.2.2
hbase 0.94.11
            Reporter: LiLi


public class TestJDBC {

    public static void main(String[] args) throws Exception {
        Statement stmt = null;
        ResultSet rset = null;

        Class.forName("com.salesforce.phoenix.jdbc.PhoenixDriver");
        Connection con = DriverManager.getConnection("jdbc:phoenix:localhost");
        stmt = con.createStatement();

        stmt.executeUpdate("create table test (mykey integer not null primary key, mycolumn
varchar)");
        stmt.executeUpdate("upsert into test values (1,'Hello')");
        stmt.executeUpdate("upsert into test values (2,'world!')");
        con.commit();

        PreparedStatement statement = con.prepareStatement("select * from test");
        rset = statement.executeQuery();
        while (rset.next()) {
            System.out.println(rset.getString("mycolumn"));
        }
        statement.close();
        con.close();
    }
}

after main thread finish, phoenix threads are still waiting about 60s.

Thread [phoenix-1-thread-0] (Suspended)	
	waiting for: Object  (id=42)	
	Object.wait(long) line: not available [native method]	
	JobManager<T>(AbstractRoundRobinQueue<E>).poll(long, TimeUnit) line: 146	
	JobManager$1(ThreadPoolExecutor).getTask() line: 1068	
	JobManager$1(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: 1130	
	ThreadPoolExecutor$Worker.run() line: 615	
	Thread.run() line: 744	




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message