ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [05/15] incubator-ignite git commit: # IGNITE-459 Bug fix: CacheContinuousQueryHandler does not support dynamically created caches.
Date Fri, 13 Mar 2015 09:52:12 GMT
# IGNITE-459 Bug fix: CacheContinuousQueryHandler does not support dynamically created caches.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/934304a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/934304a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/934304a1

Branch: refs/heads/ignite-45
Commit: 934304a17eb4e5af179a75eb84521fe1ce752325
Parents: f08510a
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Thu Mar 12 14:30:20 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Thu Mar 12 14:30:20 2015 +0300

----------------------------------------------------------------------
 .../cache/query/continuous/CacheContinuousQueryHandler.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/934304a1/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java
index 0e2e63c..cec8820 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/continuous/CacheContinuousQueryHandler.java
@@ -281,7 +281,10 @@ class CacheContinuousQueryHandler<K, V> implements GridContinuousHandler
{
         assert routineId != null;
         assert ctx != null;
 
-        manager(ctx).unregisterListener(internal, routineId);
+        GridCacheAdapter<K, V> cache = ctx.cache().<K, V>internalCache(cacheName);
+
+        if (cache != null)
+            cache.context().continuousQueries().unregisterListener(internal, routineId);
     }
 
     /**


Mime
View raw message