You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2015/03/24 22:45:55 UTC

[jira] [Comment Edited] (CALCITE-640) Avatica server should expire stale connections/statements

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

Nick Dimiduk edited comment on CALCITE-640 at 3/24/15 9:45 PM:
---------------------------------------------------------------

Okay, how would the client request a timeout? Right now we implicitly create connection objects the first time a client requests data. This is in order to avoid RPCs. I see no timeout methods on the java.sql.Connection API. java.sql.Statement has a setQueryTimeout method, but that's a timeout for query execution, not for the lifetime of a statement preparation.

This random [article|http://www.cubrid.org/blog/dev-platform/understanding-jdbc-internals-and-timeout-configuration/] has some guidelines for different settings and different database drivers. There's apparently not a consistent way to do things.


was (Author: ndimiduk):
Okay, how would the client request a timeout? Right now we implicitly create connection objects the first time a client requests data. This is in order to avoid RPCs. I see no timeout methods on the java.sql.Connection API. java.sql.Statement has a setQueryTimeout method, but that's a timeout for query execution, not for the lifetime of a statement preparation.

This random [article|http://www.cubrid.org/blog/dev-platform/understanding-jdbc-internals-and-timeout-configuration/]

> Avatica server should expire stale connections/statements
> ---------------------------------------------------------
>
>                 Key: CALCITE-640
>                 URL: https://issues.apache.org/jira/browse/CALCITE-640
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Nick Dimiduk
>            Assignee: Julian Hyde
>              Labels: avatica
>             Fix For: next
>
>         Attachments: 640.txt
>
>
> To avoid resource leaks in a long-running server process, we should be expiring our connections and statement handles after some configurable period.



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