You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/10/28 00:31:27 UTC
[jira] [Commented] (CALCITE-942) AvaticaConnection should fail-fast
when it has been closed
[ https://issues.apache.org/jira/browse/CALCITE-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977360#comment-14977360 ]
Julian Hyde commented on CALCITE-942:
-------------------------------------
Agreed. Hoping there is a way to do this on each API call without big impact to code maintainability or performance.
Same goes for detecting closed statements. And maybe canceled statements also. But those can be handled as separate issues if you prefer.
> AvaticaConnection should fail-fast when it has been closed
> ----------------------------------------------------------
>
> Key: CALCITE-942
> URL: https://issues.apache.org/jira/browse/CALCITE-942
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Reporter: Josh Elser
> Assignee: Julian Hyde
>
> Noticed when testing CALCITE-903, AvaticaConnection maintains when it has been closed via a boolean member. However, none of the other calls on AvaticaConnection verify that the connection is not closed before invoking the method.
> Trivially adding a fail-fast caused downstream test failures in {{LatticeTest.testGroupByEmpty3}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)