ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/7] incubator-ignite git commit: # ignite-742 allow CachePartialUpdateException in test
Date Wed, 15 Apr 2015 07:22:28 GMT
# ignite-742 allow CachePartialUpdateException in test


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

Branch: refs/heads/ignite-746-debug
Commit: 1a0ff8f154a6bfc853139fc50e09ca14065e1ef6
Parents: 596535b
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Apr 14 17:32:08 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Apr 14 17:32:46 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheAbstractFailoverSelfTest.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1a0ff8f1/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFailoverSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFailoverSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFailoverSelfTest.java
index 0887ee9..4cb7365 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFailoverSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFailoverSelfTest.java
@@ -18,6 +18,7 @@
 package org.apache.ignite.internal.processors.cache;
 
 import org.apache.ignite.*;
+import org.apache.ignite.cache.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.*;
 import org.apache.ignite.internal.cluster.*;
@@ -246,8 +247,7 @@ public abstract class GridCacheAbstractFailoverSelfTest extends GridCacheAbstrac
                 cache.put("key" + i, i);
         }
         catch (CacheException e) {
-            // It is ok to fail with topology exception.
-            if (!X.hasCause(e, ClusterTopologyCheckedException.class))
+            if (!X.hasCause(e, ClusterTopologyCheckedException.class) && !(e instanceof
CachePartialUpdateException))
                 throw e;
         }
     }
@@ -297,8 +297,7 @@ public abstract class GridCacheAbstractFailoverSelfTest extends GridCacheAbstrac
                 cache.remove("key" + i);
         }
         catch (CacheException e) {
-            // It is ok to fail with topology exception.
-            if (!X.hasCause(e, ClusterTopologyCheckedException.class))
+            if (!X.hasCause(e, ClusterTopologyCheckedException.class) && !(e instanceof
CachePartialUpdateException))
                 throw e;
         }
     }


Mime
View raw message