ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: fixed/enabled tests
Date Tue, 09 Oct 2018 04:48:23 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-gg-11133 a04e0caa3 -> 0c3e13f19


fixed/enabled tests


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

Branch: refs/heads/ignite-gg-11133
Commit: 0c3e13f1920acc183d09dcec3c2e09a5c6fe3dcb
Parents: a04e0ca
Author: sboikov <sboikov@apache.org>
Authored: Tue Oct 9 07:45:31 2018 +0300
Committer: sboikov <sboikov@apache.org>
Committed: Tue Oct 9 07:45:31 2018 +0300

----------------------------------------------------------------------
 .../cache/IgniteCacheConfigVariationsFullApiTest.java   | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0c3e13f1/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java
index 2a664ed..6f3ead4 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java
@@ -6311,11 +6311,15 @@ public class IgniteCacheConfigVariationsFullApiTest extends IgniteCacheConfigVar
             if (internalCache.context().isNear())
                 internalCache = internalCache.context().near().dht();
 
-            GridCacheEntryEx entry = internalCache.peekEx(key);
+            GridCacheEntryEx entry = internalCache.entryEx(key);
 
-            return entry != null ?
-                new IgnitePair<>(entry.ttl(), entry.expireTime()) :
-                new IgnitePair<Long>(null, null);
+            entry.unswap();
+
+            IgnitePair<Long> pair = new IgnitePair<>(entry.ttl(), entry.expireTime());
+
+            entry.touch(((IgniteKernal)ignite).context().discovery().topologyVersionEx());
+
+            return  pair;
         }
     }
 


Mime
View raw message