[
https://issues.apache.org/jira/browse/HIVE-26443?focusedWorklogId=805230&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-805230
]
ASF GitHub Bot logged work on HIVE-26443:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 31/Aug/22 13:45
Start Date: 31/Aug/22 13:45
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #3513:
URL: https://github.com/apache/hive/pull/3513#discussion_r959606368
##########
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:
could we create a generic method that uses the pool, key and callable?
Issue Time Tracking
-------------------
Worklog Id: (was: 805230)
Time Spent: 10h 20m (was: 10h 10m)
> 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: 10h 20m
> Remaining Estimate: 0h
>
> The details can be found in the attached design doc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)