[ https://issues.apache.org/jira/browse/HIVE-24853?focusedWorklogId=567524&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-567524 ]
ASF GitHub Bot logged work on HIVE-24853: ----------------------------------------- Author: ASF GitHub Bot Created on: 17/Mar/21 09:04 Start Date: 17/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_r595828736 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java ########## @@ -1772,23 +1774,29 @@ private long partsFoundForPartitions( + " and \"ENGINE\" = ? " + " group by \"COLUMN_NAME\", \"COLUMN_TYPE\""; start = doTrace ? System.nanoTime() : 0; - query = pm.newQuery("javax.jdo.query.SQL", queryText); - qResult = executeWithArray(query, prepareParams(catName, dbName, tableName, partNames, colNames, engine), Review comment: I think we should get rid of forward declaring `qResult` with null/etc values - it may aid the escape of a query bound object forward declaring `queryText` may also doesn't have any benefits ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 567524) Time Spent: 3.5h (was: 3h 20m) > 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: 3.5h > Remaining Estimate: 0h > > The queries aren't closed in case of timeout. -- This message was sent by Atlassian Jira (v8.3.4#803005)