ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-10103 Fixed IgnitePersistentStoreDataStructuresTest.testSequenceAfterAutoactivation - Fixes #5230.
Date Tue, 06 Nov 2018 16:43:54 GMT
Repository: ignite
Updated Branches:
  refs/heads/master dcdb27a24 -> 5459469c4


IGNITE-10103 Fixed IgnitePersistentStoreDataStructuresTest.testSequenceAfterAutoactivation
- Fixes #5230.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>


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

Branch: refs/heads/master
Commit: 5459469c4f7bf1e89f4f7ee4145d1481c164725d
Parents: dcdb27a
Author: ipavlukhin <vololo100@gmail.com>
Authored: Tue Nov 6 19:43:02 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Tue Nov 6 19:43:02 2018 +0300

----------------------------------------------------------------------
 .../IgnitePersistentStoreDataStructuresTest.java  | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5459469c/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePersistentStoreDataStructuresTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePersistentStoreDataStructuresTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePersistentStoreDataStructuresTest.java
index dc4e17e..80fb0e0 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePersistentStoreDataStructuresTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePersistentStoreDataStructuresTest.java
@@ -22,6 +22,7 @@ import org.apache.ignite.Ignite;
 import org.apache.ignite.IgniteAtomicLong;
 import org.apache.ignite.IgniteAtomicSequence;
 import org.apache.ignite.IgniteCountDownLatch;
+import org.apache.ignite.IgniteException;
 import org.apache.ignite.IgniteLock;
 import org.apache.ignite.IgniteQueue;
 import org.apache.ignite.IgniteSemaphore;
@@ -185,10 +186,19 @@ public class IgnitePersistentStoreDataStructuresTest extends GridCommonAbstractT
 
         final Ignite node = startGrids(2);
 
-        IgniteInternalFuture fut = GridTestUtils.runAsync(new Runnable() {
-            @Override public void run() {
-                // Should not hang.
-                node.atomicSequence(seqName, 0, false);
+        IgniteInternalFuture fut = GridTestUtils.runAsync(() -> {
+            while (true) {
+                try {
+                    // Should not hang.
+                    node.atomicSequence(seqName, 0, false);
+
+                    break;
+                }
+                catch (IgniteException e) {
+                    // Can fail on not yet activated cluster. Retry until success.
+                    assertTrue(e.getMessage()
+                        .contains("Can not perform the operation because the cluster is inactive"));
+                }
             }
         });
 


Mime
View raw message