You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/07/13 17:31:00 UTC
[jira] [Updated] (KYLIN-2701) Unclosed PreparedStatement in
QueryService#getPrepareOnlySqlResponse
[ https://issues.apache.org/jira/browse/KYLIN-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated KYLIN-2701:
--------------------------
Description:
{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.
was:
{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.
> 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
> Priority: Minor
>
> {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)