ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [4/4] ignite git commit: IGNITE-3477 - Added assertion
Date Tue, 21 Feb 2017 16:29:54 GMT
IGNITE-3477 - Added assertion


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

Branch: refs/heads/ignite-3477
Commit: 84df8b32d22335c7ad4f5f9d9298f25c4b7e7208
Parents: 885436c
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Tue Feb 21 19:21:30 2017 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Tue Feb 21 19:21:30 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/84df8b32/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 9d7dbbc..a88a1c6 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
@@ -270,6 +270,8 @@ public class GridCacheDistributedQueryFuture<K, V, R> extends GridCacheQueryFutu
 
     /** {@inheritDoc} */
     @Override void clear() {
+        assert isDone() : this;
+
         GridCacheDistributedQueryManager<K, V> qryMgr = (GridCacheDistributedQueryManager<K,
V>)cctx.queries();
 
         if (qryMgr != null)


Mime
View raw message