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

Jinho Kim commented on TAJO-646:
--------------------------------

I gave +1 on RB. I've tested on branch-0.8.0

> TajoClient is blocked while main thread finished.
> -------------------------------------------------
>
>                 Key: TAJO-646
>                 URL: https://issues.apache.org/jira/browse/TAJO-646
>             Project: Tajo
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>            Reporter: hyoungjunkim
>            Assignee: hyoungjunkim
>         Attachments: TAJO-646.patch, TAJO-646_2.patch
>
>
> I tested Tajo JDBC Driver like bellow. After closing connection the TestCase 
> still running. 
> {code}
> public static void main(String[] args) throws Exception {
>       Class.forName("org.apache.tajo.jdbc.TajoDriver").newInstance();
>       Connection conn = DriverManager
>                       .getConnection("jdbc:tajo://127.0.0.1:26002");
>       Statement stmt = null;
>       ResultSet rs = null;
>       try {
>               stmt = conn.createStatement();
>               rs = stmt.executeQuery("select * from table1");
>               while (rs.next()) {
>                       System.out.println(rs.getString(1) + "," + 
> rs.getString(3));
>               }
>       } finally {
>               if (rs != null) rs.close();
>               if (stmt != null) stmt.close();
>               if (conn != null) conn.close();
>       }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to