ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/3] incubator-ignite git commit: IGNITE-96 Migrating tests on new API.
Date Mon, 09 Feb 2015 16:47:17 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-96-tests 2c2204d6d -> ae5198fc4


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae5198fc/modules/core/src/test/java/org/apache/ignite/loadtests/GridCacheMultiNodeLoadTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/loadtests/GridCacheMultiNodeLoadTest.java
b/modules/core/src/test/java/org/apache/ignite/loadtests/GridCacheMultiNodeLoadTest.java
index a3d81da..ccc139e 100644
--- a/modules/core/src/test/java/org/apache/ignite/loadtests/GridCacheMultiNodeLoadTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/loadtests/GridCacheMultiNodeLoadTest.java
@@ -80,8 +80,6 @@ public class GridCacheMultiNodeLoadTest extends GridCommonAbstractTest {
     @Override protected void beforeTestsStarted() throws Exception {
         ignite1 = startGrid(1);
         startGrid(2);
-
-        ignite1.cache(CACHE_NAME);
     }
 
     /** {@inheritDoc} */

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae5198fc/modules/core/src/test/java/org/apache/ignite/loadtests/cache/GridCacheLoadTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/loadtests/cache/GridCacheLoadTest.java
b/modules/core/src/test/java/org/apache/ignite/loadtests/cache/GridCacheLoadTest.java
index 9d07202..64bafc9 100644
--- a/modules/core/src/test/java/org/apache/ignite/loadtests/cache/GridCacheLoadTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/loadtests/cache/GridCacheLoadTest.java
@@ -117,14 +117,14 @@ public final class GridCacheLoadTest extends GridCacheAbstractLoadTest
{
                         cache.put(idx = cnt.getAndIncrement(), newArray());
 
                         if (idx % 1000 == 0)
-                            info("Stored '" + idx + "' objects in cache [cache-size=" + cache.size(CachePeekMode.ALL)
+                            info("Stored '" + idx + "' objects in cache [cache-size=" + cache.size()
                                 + ']');
                     }
                 }
             }, threads, "memory-test-worker");
         }
         catch (OutOfMemoryError ignore) {
-            info("Populated '" + cnt.get() + "' 1K objects into cache [cache-size=" + cache.size(CachePeekMode.ALL)
+            info("Populated '" + cnt.get() + "' 1K objects into cache [cache-size=" + cache.size()
                 + ']');
         }
         catch (Exception e) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae5198fc/modules/core/src/test/java/org/apache/ignite/loadtests/datastructures/GridCachePartitionedAtomicLongLoadTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/loadtests/datastructures/GridCachePartitionedAtomicLongLoadTest.java
b/modules/core/src/test/java/org/apache/ignite/loadtests/datastructures/GridCachePartitionedAtomicLongLoadTest.java
index 0d276dd..9605c60 100644
--- a/modules/core/src/test/java/org/apache/ignite/loadtests/datastructures/GridCachePartitionedAtomicLongLoadTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/loadtests/datastructures/GridCachePartitionedAtomicLongLoadTest.java
@@ -109,7 +109,7 @@ public class GridCachePartitionedAtomicLongLoadTest extends GridCommonAbstractTe
         @Override public Boolean call() throws Exception {
             Ignite ignite = grid();
 
-            GridCache cache = ignite.cache(null);
+            IgniteCache cache = ignite.jcache(null);
 
             assert cache != null;
 
@@ -118,7 +118,7 @@ public class GridCachePartitionedAtomicLongLoadTest extends GridCommonAbstractTe
             long start = System.currentTimeMillis();
 
             while (System.currentTimeMillis() - start < DURATION && !Thread.currentThread().isInterrupted())
{
-                IgniteTx tx = cache.txStart();
+                IgniteTx tx = ignite.transactions().txStart();
 
                 long seqVal = seq.incrementAndGet();
 


Mime
View raw message