You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/02/21 16:29:52 UTC

[2/4] ignite git commit: ignite-db-x fix GridTcpCommunicationSpiRecoveryFailureDetectionSelfTest.testBlockListener

ignite-db-x fix GridTcpCommunicationSpiRecoveryFailureDetectionSelfTest.testBlockListener


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

Branch: refs/heads/ignite-3477
Commit: 946e71cf56b4b4dd3fd94749c4cddf6fe53caa89
Parents: 1cef4d3
Author: Dmitriy Govorukhin <dg...@gridgain.com>
Authored: Tue Feb 21 19:03:44 2017 +0300
Committer: Dmitriy Govorukhin <dg...@gridgain.com>
Committed: Tue Feb 21 19:03:44 2017 +0300

----------------------------------------------------------------------
 .../processors/cache/query/GridCacheDistributedQueryFuture.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/946e71cf/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryFuture.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryFuture.java
index 6110e0c..9d7dbbc 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryFuture.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryFuture.java
@@ -272,8 +272,7 @@ public class GridCacheDistributedQueryFuture<K, V, R> extends GridCacheQueryFutu
     @Override void clear() {
         GridCacheDistributedQueryManager<K, V> qryMgr = (GridCacheDistributedQueryManager<K, V>)cctx.queries();
 
-        assert qryMgr != null;
-
-        qryMgr.removeQueryFuture(reqId);
+        if (qryMgr != null)
+            qryMgr.removeQueryFuture(reqId);
     }
 }