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

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

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



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUpdaterThread.java
##########
@@ -214,23 +219,28 @@ private void stopWorkers() {
       throws MetaException, NoSuchTxnException, NoSuchObjectException {
     if (isAnalyzeTableInProgress(fullTableName)) return null;
     String cat = fullTableName.getCat(), db = fullTableName.getDb(), tbl = 
fullTableName.getTable();
+    String dbName = MetaStoreUtils.prependCatalogToDbName(cat,db, conf);
+    if (!isDbTargetOfReplication.containsKey(dbName) || 
!isDbBeingFailedOver.containsKey(dbName)) {
+      Database database = rs.getDatabase(cat, db);
+      isDbTargetOfReplication.put(dbName, 
ReplUtils.isTargetOfReplication(database));
+      isDbBeingFailedOver.put(dbName, 
MetaStoreUtils.isDbBeingFailedOver(database));

Review comment:
       Why do we need two separate maps, we don;t need the reason for skip, 
just tracking what to skip is fine no?




-- 
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: 604361)
    Time Spent: 1h 40m  (was: 1.5h)

> 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: 1h 40m
>  Remaining Estimate: 0h
>




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

Reply via email to