ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [16/18] incubator-ignite git commit: sprint-2 - Fixed assertion
Date Fri, 06 Mar 2015 10:13:08 GMT
sprint-2 - Fixed assertion


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

Branch: refs/heads/ignite-293
Commit: 189366bf2db548ac3cdbf9bd4961c5670c70cb93
Parents: af603c0
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Fri Mar 6 01:06:45 2015 -0800
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Fri Mar 6 01:06:45 2015 -0800

----------------------------------------------------------------------
 .../cache/distributed/dht/atomic/GridDhtAtomicCache.java          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/189366bf/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
index add51bd..00861fb 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicCache.java
@@ -1982,7 +1982,8 @@ public class GridDhtAtomicCache<K, V> extends GridDhtCacheAdapter<K,
V> {
                         req.subjectId(),
                         taskName);
 
-                    assert updRes.newTtl() == CU.TTL_NOT_CHANGED || expiry != null;
+                    assert !updRes.success() || updRes.newTtl() == CU.TTL_NOT_CHANGED ||
expiry != null :
+                        "success=" + updRes.success() + ", newTtl=" + updRes.newTtl() + ",
expiry=" + expiry;
 
                     if (intercept) {
                         if (op == UPDATE)


Mime
View raw message