ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [5/7] incubator-ignite git commit: # ignite-sprint-3 minor
Date Tue, 31 Mar 2015 03:51:26 GMT
# ignite-sprint-3 minor


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

Branch: refs/heads/ignite-639
Commit: bca419877f2e136a3e9d35ecb6c9af8e770bf0ee
Parents: 50ed825
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Mar 30 18:24:36 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Mar 30 18:24:36 2015 +0300

----------------------------------------------------------------------
 .../cache/IgniteCacheDynamicStopSelfTest.java    | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bca41987/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheDynamicStopSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheDynamicStopSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheDynamicStopSelfTest.java
index 4542954..071341e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheDynamicStopSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheDynamicStopSelfTest.java
@@ -64,6 +64,7 @@ public class IgniteCacheDynamicStopSelfTest extends GridCommonAbstractTest
{
     }
 
     /**
+     * @param allowOverwrite Allow overwrite flag for streamer.
      * @throws Exception If failed.
      */
     public void checkStopStartCacheWithDataLoader(final boolean allowOverwrite) throws Exception
{
@@ -77,8 +78,7 @@ public class IgniteCacheDynamicStopSelfTest extends GridCommonAbstractTest
{
 
         IgniteInternalFuture<Object> fut = GridTestUtils.runAsync(new Callable<Object>()
{
             /** {@inheritDoc} */
-            @Override
-            public Object call() throws Exception {
+            @Override public Object call() throws Exception {
                 try (IgniteDataStreamer<Integer, Integer> str = ignite(0).dataStreamer(null))
{
                     str.allowOverwrite(allowOverwrite);
 
@@ -106,15 +106,18 @@ public class IgniteCacheDynamicStopSelfTest extends GridCommonAbstractTest
{
             }
         });
 
-        Thread.sleep(500);
+        try {
+            Thread.sleep(500);
 
-        ignite(0).destroyCache(null);
-
-        Thread.sleep(500);
+            ignite(0).destroyCache(null);
 
-        ignite(0).createCache(ccfg);
+            Thread.sleep(500);
 
-        stop.set(true);
+            ignite(0).createCache(ccfg);
+        }
+        finally {
+            stop.set(true);
+        }
 
         fut.get();
 


Mime
View raw message