[ https://issues.apache.org/jira/browse/HIVE-26443?focusedWorklogId=805246&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-805246 ]
ASF GitHub Bot logged work on HIVE-26443: ----------------------------------------- Author: ASF GitHub Bot Created on: 31/Aug/22 14:12 Start Date: 31/Aug/22 14:12 Worklog Time Spent: 10m Work Description: deniskuzZ commented on code in PR #3513: URL: https://github.com/apache/hive/pull/3513#discussion_r959638567 ########## ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java: ########## @@ -270,6 +281,27 @@ private Table resolveTableAndCache(CompactionInfo ci) throws MetaException { return resolveTable(ci); } + private Database resolveDatabaseAndCache(CompactionInfo ci) throws MetaException, NoSuchObjectException { + if (dbCache.isPresent()) { + try { + return dbCache.get().get(ci.dbname, () -> resolveDatabase(ci)); + } catch (ExecutionException e) { + throw (MetaException) e.getCause(); + } + } + return resolveDatabase(ci); + } + + private Database resolveDatabase(CompactionInfo ci) throws MetaException, NoSuchObjectException { Review Comment: we can address in in diff PR Issue Time Tracking ------------------- Worklog Id: (was: 805246) Time Spent: 11h 50m (was: 11h 40m) > Add priority queueing to compaction > ----------------------------------- > > Key: HIVE-26443 > URL: https://issues.apache.org/jira/browse/HIVE-26443 > Project: Hive > Issue Type: New Feature > Reporter: László Végh > Assignee: László Végh > Priority: Major > Labels: pull-request-available > Attachments: Pool based compaction queues.docx > > Time Spent: 11h 50m > Remaining Estimate: 0h > > The details can be found in the attached design doc. -- This message was sent by Atlassian Jira (v8.20.10#820010)