bharatviswa504 commented on a change in pull request #703: HDDS-1371. Download 
RocksDB checkpoint from OM Leader to Follower.
URL: https://github.com/apache/hadoop/pull/703#discussion_r290395702
 
 

 ##########
 File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsUtils.java
 ##########
 @@ -475,4 +478,24 @@ public static InetSocketAddress 
getScmAddressForSecurityProtocol(
         .orElse(ScmConfigKeys.OZONE_SCM_SECURITY_SERVICE_PORT_DEFAULT));
   }
 
+  /**
+   * Get http policy.
+   */
+  public static HttpConfig.Policy getHttpPolicy(Configuration conf) {
+    String policyStr = conf.get(OzoneConfigKeys.OZONE_HTTP_POLICY_KEY);
+    if (policyStr == null) {
+      policyStr = conf.get(DFSConfigKeys.DFS_HTTP_POLICY_KEY,
+          DFSConfigKeys.DFS_HTTP_POLICY_DEFAULT);
+    }
+
+    HttpConfig.Policy policy = HttpConfig.Policy.fromString(policyStr);
+    if (policy == null) {
+      throw new IllegalArgumentException("Unregonized value '"
 
 Review comment:
   NIT: Unregonized -> Unrecognized.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to