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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6560a8c  IGNITE-12508 Add missing cache remove to ClusterCachesInfo - 
Fixes #8845.
6560a8c is described below

commit 6560a8c5d836556536ec79ef94f6147a2e9a23b5
Author: Atri Sharma <atri.j...@gmail.com>
AuthorDate: Tue Mar 9 19:18:40 2021 +0300

    IGNITE-12508 Add missing cache remove to ClusterCachesInfo - Fixes #8845.
    
    Signed-off-by: Ilya Kasnacheev <ilya.kasnach...@gmail.com>
---
 .../org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
index 7cb72ef..ffe51c8 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/ClusterCachesInfo.java
@@ -233,6 +233,8 @@ public class ClusterCachesInfo {
             if (!locCaches.contains(e.getKey())) {
                 cachesIter.remove();
 
+                registeredCachesById.remove(e.getValue());
+
                 ctx.discovery().removeCacheFilter(e.getKey());
             }
         }

Reply via email to