You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/06/16 08:45:00 UTC

[jira] [Work logged] (HIVE-26326) Support enabling background threads when failover is in progress.

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

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

                Author: ASF GitHub Bot
            Created on: 16/Jun/22 08:44
            Start Date: 16/Jun/22 08:44
    Worklog Time Spent: 10m 
      Work Description: pvary commented on code in PR #3376:
URL: https://github.com/apache/hive/pull/3376#discussion_r898847702


##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java:
##########
@@ -291,9 +291,17 @@ public static boolean isTargetOfReplication(Database db) {
     return dbParameters != null && !StringUtils.isEmpty(dbParameters.get(ReplConst.TARGET_OF_REPLICATION));
   }
 
+  public static boolean forceEnableBackgroundThreads(Database db) {

Review Comment:
   is this `isBackgroundTreadsEnabled`?
   The current name suggests for me that we set something forcefully, but the code shows that we are just checking a property





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

            Worklog Id:     (was: 781961)
    Remaining Estimate: 0h
            Time Spent: 10m

> Support enabling background threads when failover is in progress.
> -----------------------------------------------------------------
>
>                 Key: HIVE-26326
>                 URL: https://issues.apache.org/jira/browse/HIVE-26326
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Haymant Mangla
>            Assignee: Haymant Mangla
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> repl.target.for doesn't allow background threads, expose a {*}repl.backgroundthread{*}=enable: To force enable the background threads, irrespective of repl.target.for, once B takes over as primary.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)