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

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

                Author: ASF GitHub Bot
            Created on: 03/Jun/21 07:12
            Start Date: 03/Jun/21 07:12
    Worklog Time Spent: 10m 
      Work Description: pkumarsinha commented on a change in pull request #2311:
URL: https://github.com/apache/hive/pull/2311#discussion_r644543165



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PartitionManagementTask.java
##########
@@ -133,11 +135,21 @@ public void run() {
         LOG.info("Looking for tables using catalog: {} dbPattern: {} 
tablePattern: {} found: {}", catalogName,
           dbPattern, tablePattern, foundTableMetas.size());
 
+        Map<String, Boolean> databasesToSkip = new HashMap<>();
+
         for (TableMeta tableMeta : foundTableMetas) {
           try {
+            String dbName = 
MetaStoreUtils.prependCatalogToDbName(tableMeta.getCatName(), 
tableMeta.getDbName(), conf);
+            if (!databasesToSkip.containsKey(dbName)) {
+              Database db = msc.getDatabase(tableMeta.getCatName(), 
tableMeta.getDbName());
+              databasesToSkip.put(dbName, isTargetOfReplication(db) || 
MetaStoreUtils.isDbBeingFailedOver(db));
+            }
+            if (databasesToSkip.get(dbName)) {
+              LOG.info("Skipping table : {}", tableMeta.getTableName());

Review comment:
       use debug.




-- 
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: 605709)
    Time Spent: 3h 20m  (was: 3h 10m)

> Disable StatsUpdaterThread and PartitionManagementTask for db that is being 
> failoved over.
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-25154
>                 URL: https://issues.apache.org/jira/browse/HIVE-25154
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Haymant Mangla
>            Assignee: Haymant Mangla
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to