bshashikant commented on a change in pull request #1918:
URL: https://github.com/apache/ozone/pull/1918#discussion_r576747819
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneHAClusterImpl.java
##########
@@ -445,4 +605,89 @@ private void initHAConfig(int basePort) throws IOException
{
conf.set(omNodesKey, omNodesKeyValue.substring(1));
}
}
+
+ @FunctionalInterface
+ public interface CheckedConsumer<T> {
+ void apply(T t) throws IOException;
+ }
+
+ static class MiniOzoneHAService<Type> {
+ private Map<String, Type> serviceMap;
+ private List<Type> services;
+ private String serviceId;
+
+ // Active OMs denote OMs which are up and running
+ private List<Type> activeServices;
+ private List<Type> inactiveServices;
+
Review comment:
Can we add some documentation/comments here describing HAService ???
----------------------------------------------------------------
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]