You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/05/26 04:02:17 UTC
[jira] [Commented] (TAJO-1619) JDBC program is stuck after closing
[ https://issues.apache.org/jira/browse/TAJO-1619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558613#comment-14558613 ]
ASF GitHub Bot commented on TAJO-1619:
--------------------------------------
GitHub user jihoonson opened a pull request:
https://github.com/apache/tajo/pull/584
TAJO-1619: JDBC program is stuck after closing
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jihoonson/tajo-2 TAJO-1619
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/584.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #584
----
commit 7033cb452e00fb49b95941fec1f98c96c3e024ec
Author: Jihoon Son <ji...@apache.org>
Date: 2015-05-26T02:01:27Z
TAJO-1619
----
> JDBC program is stuck after closing
> -----------------------------------
>
> Key: TAJO-1619
> URL: https://issues.apache.org/jira/browse/TAJO-1619
> Project: Tajo
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.10.0
> Reporter: Jongyoung Park
> Attachments: dump, tajo-eminency-master-Jongyoungui-MBP.log, tajo-eminency-worker-Jongyoungui-MBP.log
>
>
> {code:title=JdbcTest.java|borderStyle=solid}
> public class JdbcTest {
> public static void main(String [] args) throws ClassNotFoundException, SQLException {
> Class.forName("org.apache.tajo.jdbc.TajoDriver");
> Connection conn = DriverManager.getConnection("jdbc:tajo://127.0.0.1:26002/tpch");
> Statement stmt = null;
> ResultSet rs = null;
> try {
> stmt = conn.createStatement();
> rs = stmt.executeQuery("select count(*) from customer");
> System.out.println(rs.next());
> System.out.println(rs.getInt(1));
> } catch (SQLException e) {
> System.err.println(e.getMessage());
> } finally {
> System.out.println("close start");
> if (rs != null) rs.close();
> System.out.println("rs close end");
> if (stmt != null) stmt.close();
> System.out.println("stmt close end");
> if (conn != null) conn.close();
> System.out.println("conn close end");
> }
> }
> }
> {code}
> When the code above is executed, it is stuck after printing 'conn close end'.
> I attache log and thread dump.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)