You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2017/07/22 13:46:01 UTC
[jira] [Commented] (KYLIN-2701) Unclosed PreparedStatement in
QueryService#getPrepareOnlySqlResponse
[ https://issues.apache.org/jira/browse/KYLIN-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097332#comment-16097332 ]
Shaofeng SHI commented on KYLIN-2701:
-------------------------------------
Fixed in https://github.com/apache/kylin/commit/a2411fb4b0b9dcc36b1d6d4bb227b5a679d09496, thanks for the reporting!
> Unclosed PreparedStatement in QueryService#getPrepareOnlySqlResponse
> --------------------------------------------------------------------
>
> Key: KYLIN-2701
> URL: https://issues.apache.org/jira/browse/KYLIN-2701
> Project: Kylin
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Shaofeng SHI
> Priority: Minor
> Fix For: v2.1.0
>
>
> {code}
> try {
> conn.prepareStatement(correctedSql);
> throw new IllegalStateException("Should have thrown OnlyPrepareEarlyAbortException");
> {code}
> The return value of prepareStatement() may leak if there is no exception from the call.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)