[ 
https://issues.apache.org/jira/browse/HIVE-24853?focusedWorklogId=565207&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-565207
 ]

ASF GitHub Bot logged work on HIVE-24853:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Mar/21 09:04
            Start Date: 12/Mar/21 09:04
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #2044:
URL: https://github.com/apache/hive/pull/2044#discussion_r593013277



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
##########
@@ -1772,7 +1772,7 @@ private long partsFoundForPartitions(
           + " and \"ENGINE\" = ? "
           + " group by \"COLUMN_NAME\", \"COLUMN_TYPE\"";
       start = doTrace ? System.nanoTime() : 0;
-      query = pm.newQuery("javax.jdo.query.SQL", queryText);
+      try(Query query = pm.newQuery("javax.jdo.query.SQL", queryText);) {
       qResult = executeWithArray(query, prepareParams(catName, dbName, 
tableName, partNames, colNames, engine),

Review comment:
       I believe this line should be indented




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 565207)
    Time Spent: 2h 20m  (was: 2h 10m)

> HMS leaks queries in case of timeout
> ------------------------------------
>
>                 Key: HIVE-24853
>                 URL: https://issues.apache.org/jira/browse/HIVE-24853
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> The queries aren't closed in case of timeout.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to