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



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to