This is an automated email from the ASF dual-hosted git repository.

sodonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 41651e8  HDDS-6313. Remove replicas in ContainerStateMap when a 
container is deleted (#3086)
41651e8 is described below

commit 41651e83dc0d619ae8686ce28a87555ad88c03a6
Author: Stephen O'Donnell <[email protected]>
AuthorDate: Tue Feb 15 07:40:34 2022 +0000

    HDDS-6313. Remove replicas in ContainerStateMap when a container is deleted 
(#3086)
---
 .../org/apache/hadoop/hdds/scm/container/states/ContainerStateMap.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/states/ContainerStateMap.java
 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/states/ContainerStateMap.java
index c254dd7..de507b7 100644
--- 
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/states/ContainerStateMap.java
+++ 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/states/ContainerStateMap.java
@@ -147,6 +147,7 @@ public class ContainerStateMap {
       ownerMap.remove(info.getOwner(), id);
       repConfigMap.remove(info.getReplicationConfig(), id);
       typeMap.remove(info.getReplicationType(), id);
+      replicaMap.remove(id);
       // Flush the cache of this container type.
       flushCache(info);
       LOG.trace("Container {} removed from ContainerStateMap.", id);

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

Reply via email to