bharatviswa504 commented on a change in pull request #1940:
URL: https://github.com/apache/ozone/pull/1940#discussion_r579983133



##########
File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMHAUtils.java
##########
@@ -101,4 +103,32 @@ public static String 
getSCMRatisSnapshotDirectory(ConfigurationSource conf) {
     }
     return snapshotDir;
   }
+
+  /**
+   * Get SCM ServiceId from OzoneConfiguration.
+   * @param conf
+   * @return SCM service id if defined, else null.
+   */
+  public static String getScmServiceId(ConfigurationSource conf) {
+
+    String localScmServiceId = conf.getTrimmed(
+        ScmConfigKeys.OZONE_SCM_DEFAULT_SERVICE_ID);
+
+    Collection< String > scmServiceIds;

Review comment:
       Here as Collection would be a string and during iteration, instead of 
typecasting to a string, so declared collection as String. (Removed spaces)




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



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

Reply via email to