[ https://issues.apache.org/jira/browse/HIVE-24445?focusedWorklogId=542703&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-542703 ]
ASF GitHub Bot logged work on HIVE-24445: ----------------------------------------- Author: ASF GitHub Bot Created on: 27/Jan/21 08:35 Start Date: 27/Jan/21 08:35 Worklog Time Spent: 10m Work Description: deniskuzZ commented on a change in pull request #1914: URL: https://github.com/apache/hive/pull/1914#discussion_r565117308 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java ########## @@ -1259,6 +1261,43 @@ public boolean dropTable(String catName, String dbName, String tableName) return success; } + private void markTableAsPendingDrop(String catName, String dbName, String tableName) { + boolean isLocklessReadsEnabled = MetastoreConf.getBoolVar(getConf(), ConfVars.LOCKLESS_READS_ENABLED); + + if (isLocklessReadsEnabled) { + boolean success = false; + tableName = normalizeIdentifier(tableName); + dbName = normalizeIdentifier(dbName); + catName = normalizeIdentifier(catName); + Query query = null; + + try { + LOG.debug("Executing markTableAsPendingDrop"); + + openTransaction(); Review comment: Why are you opening new transaction here? ---------------------------------------------------------------- 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: 542703) Time Spent: 50m (was: 40m) > Non blocking DROP table implementation > -------------------------------------- > > Key: HIVE-24445 > URL: https://issues.apache.org/jira/browse/HIVE-24445 > Project: Hive > Issue Type: New Feature > Components: Hive > Reporter: Zoltan Chovan > Assignee: Zoltan Chovan > Priority: Major > Labels: pull-request-available > Time Spent: 50m > Remaining Estimate: 0h > > Implement a way to execute drop table operations in a way that doesn't have > to wait for currently running read operations to be finished. -- This message was sent by Atlassian Jira (v8.3.4#803005)