[ 
https://issues.apache.org/jira/browse/HIVE-24805?focusedWorklogId=710643&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-710643
 ]

ASF GitHub Bot logged work on HIVE-24805:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Jan/22 16:47
            Start Date: 18/Jan/22 16:47
    Worklog Time Spent: 10m 
      Work Description: asinkovits commented on a change in pull request #2906:
URL: https://github.com/apache/hive/pull/2906#discussion_r786957161



##########
File path: 
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
##########
@@ -589,6 +589,9 @@ public static ConfVars getMetaConf(String name) {
             "in which a warning is being raised if multiple worker version are 
detected.\n" +
             "The setting has no effect if the metastore.metrics.enabled is 
disabled \n" +
             "or the metastore.acidmetrics.thread.on is turned off."),
+    
COMPACTOR_METADATA_CACHE_TIMEOUT("metastore.compactor.metadata.cache.timeout",
+      "hive.metastore.compactor.metadata.cache.timeout", 60, TimeUnit.SECONDS,

Review comment:
       The idea was to keep it at a low value so that we don't need extra 
eviction logic. Now that the cache works for a single cycle of the initiator, 
the sole purpose of this config is to be able to control the memory consumption 
of the cache.




-- 
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.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 710643)
    Time Spent: 3h 10m  (was: 3h)

> Compactor: Initiator shouldn't fetch table details again and again for 
> partitioned tables
> -----------------------------------------------------------------------------------------
>
>                 Key: HIVE-24805
>                 URL: https://issues.apache.org/jira/browse/HIVE-24805
>             Project: Hive
>          Issue Type: Improvement
>          Components: Transactions
>            Reporter: Rajesh Balamohan
>            Assignee: Antal Sinkovits
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Initiator shouldn't be fetch table details for all its partitions. When there 
> are large number of databases/tables, it takes lot of time for Initiator to 
> complete its initial iteration and load on DB also goes higher.
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java#L129
> https://github.com/apache/hive/blob/64bb52316f19426ebea0087ee15e282cbde1d852/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java#L456
> For all the following partitions, table details would be the same. However, 
> it ends up fetching table details from HMS again and again.
> {noformat}
> 2021-02-22 08:13:16,106 INFO  
> org.apache.hadoop.hive.ql.txn.compactor.Initiator: [Thread-11]: Checking to 
> see if we should compact 
> tpcds_bin_partitioned_orc_1000.store_returns_tmp2.sr_returned_date_sk=2451899
> 2021-02-22 08:13:16,124 INFO  
> org.apache.hadoop.hive.ql.txn.compactor.Initiator: [Thread-11]: Checking to 
> see if we should compact 
> tpcds_bin_partitioned_orc_1000.store_returns_tmp2.sr_returned_date_sk=2451830
> 2021-02-22 08:13:16,140 INFO  
> org.apache.hadoop.hive.ql.txn.compactor.Initiator: [Thread-11]: Checking to 
> see if we should compact 
> tpcds_bin_partitioned_orc_1000.store_returns_tmp2.sr_returned_date_sk=2452586
> 2021-02-22 08:13:16,149 INFO  
> org.apache.hadoop.hive.ql.txn.compactor.Initiator: [Thread-11]: Checking to 
> see if we should compact 
> tpcds_bin_partitioned_orc_1000.store_returns_tmp2.sr_returned_date_sk=2452698
> 2021-02-22 08:13:16,158 INFO  
> org.apache.hadoop.hive.ql.txn.compactor.Initiator: [Thread-11]: Checking to 
> see if we should compact 
> tpcds_bin_partitioned_orc_1000.store_returns_tmp2.sr_returned_date_sk=2452063
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to