ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: # sprint-45 increase test timeout
Date Mon, 23 Mar 2015 15:04:55 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 46d054d29 -> cf083b9f8


# sprint-45 increase test timeout


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

Branch: refs/heads/ignite-45
Commit: bf5b8f4112d904e85ae4d6575abb5b077e8e3313
Parents: 6e2dbd9
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Mar 23 18:04:10 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Mar 23 18:04:10 2015 +0300

----------------------------------------------------------------------
 .../GridCacheAtomicInvalidPartitionHandlingSelfTest.java    | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf5b8f41/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 75fc81c..c066770 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
@@ -244,7 +244,7 @@ public class GridCacheAtomicInvalidPartitionHandlingSelfTest extends GridCommonA
 
                     GridCacheEntryEx entry = c.peekEx(k);
 
-                    for (int r = 0; r < 3; r++) {
+                    for (int r = 0; r < 10; r++) {
                         try {
                             if (affNodes.contains(locNode)) {
                                 assert c.affinity().isPrimaryOrBackup(locNode, k);
@@ -274,10 +274,13 @@ public class GridCacheAtomicInvalidPartitionHandlingSelfTest extends
GridCommonA
                                 assertTrue("Invalid entry: " + entry, entry == null || !entry.partitionValid());
                         }
                         catch (AssertionError e) {
-                            if (r == 2)
+                            if (r == 9) {
+                                System.err.println("Failed to verify cache contents: " +
e.getMessage());
+
                                 throw e;
+                            }
 
-                            System.err.println("Failed to verify cache contents: " + e.getMessage());
+                            System.err.println("Failed to verify cache contents, will retry:
" + e.getMessage());
 
                             // Give some time to finish async updates.
                             U.sleep(1000);


Mime
View raw message