bharatviswa504 commented on a change in pull request #930: HDDS-1651. Create a http.policy config for Ozone URL: https://github.com/apache/hadoop/pull/930#discussion_r293661985
########## File path: hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsUtils.java ########## @@ -426,6 +430,20 @@ public static long getUtcTime() { return Calendar.getInstance(UTC_ZONE).getTimeInMillis(); } + public static Policy getHttpPolicy(Configuration conf) { + String policyStr = conf.get("ozone.http.policy", OzoneConfigKeys.OZONE_HTTP_POLICY); Review comment: This line get() second param value should be a default value for the property. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org