[ https://issues.apache.org/jira/browse/HIVE-23266?focusedWorklogId=443479&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-443479 ]
ASF GitHub Bot logged work on HIVE-23266: ----------------------------------------- Author: ASF GitHub Bot Created on: 10/Jun/20 00:01 Start Date: 10/Jun/20 00:01 Worklog Time Spent: 10m Work Description: dengzhhu653 commented on a change in pull request #1078: URL: https://github.com/apache/hive/pull/1078#discussion_r437786895 ########## File path: standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/VerifyingObjectStore.java ########## @@ -93,9 +93,11 @@ public boolean getPartitionsByExpr(String catName, String dbName, String tblName @Override public List<Partition> getPartitions( String catName, String dbName, String tableName, int maxParts) throws MetaException, NoSuchObjectException { + openTransaction(); List<Partition> sqlResults = getPartitionsInternal(catName, dbName, tableName, maxParts, true, false); List<Partition> ormResults = getPartitionsInternal(catName, dbName, tableName, maxParts, false, true); verifyLists(sqlResults, ormResults, Partition.class); + commitTransaction(); Review comment: Got it. ---------------------------------------------------------------- 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: 443479) Time Spent: 1h 10m (was: 1h) > Remove QueryWrapper from ObjectStore > ------------------------------------ > > Key: HIVE-23266 > URL: https://issues.apache.org/jira/browse/HIVE-23266 > Project: Hive > Issue Type: Improvement > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Major > Labels: pull-request-available > Attachments: HIVE-23266.1.patch, HIVE-23266.10.patch, > HIVE-23266.11.patch, HIVE-23266.2.patch, HIVE-23266.2.patch, > HIVE-23266.3.patch, HIVE-23266.4.patch, HIVE-23266.5.patch, > HIVE-23266.6.patch, HIVE-23266.7.patch, HIVE-23266.8.patch, HIVE-23266.9.patch > > Time Spent: 1h 10m > Remaining Estimate: 0h > > There is currently a utility called {{QueryWrapper}} that makes a normal > {{Query}} auto-closable. However, {{Query}} is now in fact already > auto-closing, so there is no need for this class. In trying to remove it, I > realized that this wrapper was being passed around in pretty convoluted ways > and also it was sometimes being created in a {{try-with-resources}} block but > then never actually used in any way. > Remove the {{QueryWrapper}} from the class and simplify some of the DB > interactions. > https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L178 -- This message was sent by Atlassian Jira (v8.3.4#803005)