[
https://issues.apache.org/jira/browse/HIVE-26921?focusedWorklogId=843071&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-843071
]
ASF GitHub Bot logged work on HIVE-26921:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/Feb/23 05:10
Start Date: 02/Feb/23 05:10
Worklog Time Spent: 10m
Work Description: pudidic commented on code in PR #3999:
URL: https://github.com/apache/hive/pull/3999#discussion_r1094030970
##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/repl/ReplConst.java:
##########
@@ -82,4 +84,10 @@ public class ReplConst {
public static final String BOOTSTRAP_DUMP_STATE_KEY_PREFIX =
"bootstrap.dump.state.";
public static final String READ_ONLY_HOOK =
"org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyDatabaseHook";
+
+ /**
+ * Type of failover
+ */
+ public static final String PLANNED_FAILOVER = "PLANNED";
Review Comment:
It's usually better to create an enum for types.
https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
Issue Time Tracking
-------------------
Worklog Id: (was: 843071)
Time Spent: 40m (was: 0.5h)
> Add failover_type, failover_endpoint to replication metrics metadata
> --------------------------------------------------------------------
>
> Key: HIVE-26921
> URL: https://issues.apache.org/jira/browse/HIVE-26921
> Project: Hive
> Issue Type: Improvement
> Components: HiveServer2
> Reporter: Amit Saonerkar
> Assignee: Amit Saonerkar
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Corresponding to CDPD-46494
--
This message was sent by Atlassian Jira
(v8.20.10#820010)