adoroszlai commented on code in PR #8990:
URL: https://github.com/apache/ozone/pull/8990#discussion_r2594618126


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/states/ContainerEntry.java:
##########
@@ -31,7 +32,8 @@
  */
 public class ContainerEntry {
   private final ContainerInfo info;
-  private final Map<DatanodeID, ContainerReplica> replicas = new HashMap<>();
+  private Map<DatanodeID, ContainerReplica> replicaMap = 
Collections.emptyMap();

Review Comment:
   We need to restore the `HashMap` since `replicaMap` is not reassigned:
   
   ```suggestion
     private final Map<DatanodeID, ContainerReplica> replicaMap = new 
HashMap<>();
   ```



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

Reply via email to