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

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

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



##########
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));

Review comment:
       Add a INFO level log for DB that with why it is getting skipped...




-- 
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:
[email protected]


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

    Worklog Id:     (was: 605710)
    Time Spent: 3.5h  (was: 3h 20m)

> 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: 3.5h
>  Remaining Estimate: 0h
>




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

Reply via email to