[
https://issues.apache.org/jira/browse/HIVE-26326?focusedWorklogId=782302&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-782302
]
ASF GitHub Bot logged work on HIVE-26326:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Jun/22 08:16
Start Date: 17/Jun/22 08:16
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #3376:
URL: https://github.com/apache/hive/pull/3376#discussion_r899882866
##########
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 isBackgroundThreadsEnabledForRepl(Database db) {
+ assert (db != null);
Review Comment:
won't be executed in production code, should we throw an exception here?
Issue Time Tracking
-------------------
Worklog Id: (was: 782302)
Time Spent: 0.5h (was: 20m)
> 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
> Labels: pull-request-available
> Time Spent: 0.5h
> 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)