ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: GridCacheAtomicInvalidPartitionHandlingSelfTest: fixed test to properly get cache entry.
Date Mon, 09 Jan 2017 10:44:46 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3477 57a002ad0 -> c11209279


GridCacheAtomicInvalidPartitionHandlingSelfTest: fixed test to properly get cache entry.


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

Branch: refs/heads/ignite-3477
Commit: c1120927954079ff9dd4557b7a9c86b02fc85cc1
Parents: 57a002a
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Jan 9 13:44:51 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Jan 9 13:44:51 2017 +0300

----------------------------------------------------------------------
 ...CacheAtomicInvalidPartitionHandlingSelfTest.java | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c1120927/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridCacheAtomicInvalidPartitionHandlingSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridCacheAtomicInvalidPartitionHandlingSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridCacheAtomicInvalidPartitionHandlingSelfTest.java
index 6cc4679..177c878 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridCacheAtomicInvalidPartitionHandlingSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridCacheAtomicInvalidPartitionHandlingSelfTest.java
@@ -384,17 +384,13 @@ public class GridCacheAtomicInvalidPartitionHandlingSelfTest extends
GridCommonA
 
                     GridCacheEntryEx entry = null;
 
-                    if (memMode == TestMemoryMode.HEAP)
-                        entry = c.peekEx(k);
-                    else {
-                        try {
-                            entry = c.entryEx(k);
+                    try {
+                        entry = c.entryEx(k);
 
-                            entry.unswap();
-                        }
-                        catch (GridDhtInvalidPartitionException e) {
-                            // Skip key.
-                        }
+                        entry.unswap();
+                    }
+                    catch (GridDhtInvalidPartitionException e) {
+                        // Skip key.
                     }
 
                     for (int r = 0; r < 10; r++) {


Mime
View raw message