hanishakoneru commented on a change in pull request #1494:
URL: https://github.com/apache/ozone/pull/1494#discussion_r544495600
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneHAClusterImpl.java
##########
@@ -442,7 +457,169 @@ private void initHAConfig(int basePort) throws
IOException {
conf.setInt(omRatisPortKey, port + 4);
}
- conf.set(omNodesKey, omNodesKeyValue.substring(1));
+ conf.set(omNodesKey, String.join(",", omNodeIds));
+ }
+ }
+
+ /**
+ * Bootstrap new OMs and add them to existing OM ring.
+ * @param numNewOMs number of new OMs to bootstrap
+ * @return list of new OMs nodeIds
+ */
+ public List<String> bootstrapOzoneManagers(int numNewOMs) throws IOException,
Review comment:
Giving numNewOMs are parameter to test different scenarios - adding OMs
one by one and adding two OMs together. This is the function which generates
the new HA configuration for the new nodes.
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneHAClusterImpl.java
##########
@@ -442,7 +457,169 @@ private void initHAConfig(int basePort) throws
IOException {
conf.setInt(omRatisPortKey, port + 4);
}
- conf.set(omNodesKey, omNodesKeyValue.substring(1));
+ conf.set(omNodesKey, String.join(",", omNodeIds));
+ }
+ }
+
+ /**
+ * Bootstrap new OMs and add them to existing OM ring.
+ * @param numNewOMs number of new OMs to bootstrap
+ * @return list of new OMs nodeIds
+ */
+ public List<String> bootstrapOzoneManagers(int numNewOMs) throws IOException,
Review comment:
Giving numNewOMs as parameter to test different scenarios - adding OMs
one by one and adding two OMs together. This is the function which generates
the new HA configuration for the new nodes.
----------------------------------------------------------------
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]