sodonnel commented on code in PR #3781:
URL: https://github.com/apache/ozone/pull/3781#discussion_r999244991
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/DatanodeAdminMonitorImpl.java:
##########
@@ -90,6 +137,9 @@ public DatanodeAdminMonitorImpl(
this.eventQueue = eventQueue;
this.nodeManager = nodeManager;
this.replicationManager = replicationManager;
+
+ containerStateByHost = new HashMap<>();
+ pipelinesWaitingToCloseByHost = new HashMap<>();
Review Comment:
Why split the pipelines into a seperate map? It looks like it would be
easier overall to have a pipeline count setter on the
`ContainerStateInWorkflow` object and just carry the pipeline count around with
the containers etc too?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]