ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [03/18] ignite git commit: ignite-gg-12163 WAL_REBALANCE_THRESHOLD property restored in test
Date Tue, 23 May 2017 13:07:26 GMT
ignite-gg-12163 WAL_REBALANCE_THRESHOLD property restored in test


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

Branch: refs/heads/ignite-5075-pds
Commit: 4c575f0f433659760b2f17ea80cbc55d24109551
Parents: e0bf4e0
Author: Sergey Chugunov <sergey.chugunov@gmail.com>
Authored: Mon May 22 12:13:43 2017 +0300
Committer: Sergey Chugunov <sergey.chugunov@gmail.com>
Committed: Mon May 22 12:14:37 2017 +0300

----------------------------------------------------------------------
 .../IgniteWalHistoryReservationsSelfTest.java     | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4c575f0f/modules/pds/src/test/java/org/apache/ignite/cache/database/db/file/IgniteWalHistoryReservationsSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/pds/src/test/java/org/apache/ignite/cache/database/db/file/IgniteWalHistoryReservationsSelfTest.java
b/modules/pds/src/test/java/org/apache/ignite/cache/database/db/file/IgniteWalHistoryReservationsSelfTest.java
index a92a29f..d4d8de5 100644
--- a/modules/pds/src/test/java/org/apache/ignite/cache/database/db/file/IgniteWalHistoryReservationsSelfTest.java
+++ b/modules/pds/src/test/java/org/apache/ignite/cache/database/db/file/IgniteWalHistoryReservationsSelfTest.java
@@ -39,6 +39,8 @@ import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
 
+import static org.apache.ignite.IgniteSystemProperties.IGNITE_WAL_REBALANCE_THRESHOLD;
+
 /**
  *
  */
@@ -71,7 +73,13 @@ public class IgniteWalHistoryReservationsSelfTest extends GridCommonAbstractTest
 
         cfg.setCacheConfiguration(ccfg1);
 
-        cfg.setPersistenceConfiguration(new PersistenceConfiguration());
+        PersistenceConfiguration pstCfg = new PersistenceConfiguration();
+
+        pstCfg.setPersistenceStorePath("/ramdisk/ignite/db/database");
+        pstCfg.setWalStorePath("/ramdisk/ignite/db/wal");
+        pstCfg.setWalArchivePath("/ramdisk/ignite/db/wal_archive");
+
+        cfg.setPersistenceConfiguration(pstCfg);
 
         return cfg;
     }
@@ -85,6 +93,8 @@ public class IgniteWalHistoryReservationsSelfTest extends GridCommonAbstractTest
 
     /** {@inheritDoc} */
     @Override protected void afterTest() throws Exception {
+        System.clearProperty(IGNITE_WAL_REBALANCE_THRESHOLD);
+
         client = false;
 
         stopAllGrids();
@@ -96,6 +106,8 @@ public class IgniteWalHistoryReservationsSelfTest extends GridCommonAbstractTest
      * @throws Exception If failed.
      */
     public void testReservedOnExchange() throws Exception {
+        System.setProperty(IGNITE_WAL_REBALANCE_THRESHOLD, "0");
+
         final int entryCnt = 10_000;
         final int initGridCnt = 4;
 
@@ -179,6 +191,8 @@ public class IgniteWalHistoryReservationsSelfTest extends GridCommonAbstractTest
      * @throws Exception If failed.
      */
     public void testRemovesArePreloadedIfHistoryIsAvailable() throws Exception {
+        System.setProperty(IGNITE_WAL_REBALANCE_THRESHOLD, "0");
+
         int entryCnt = 10_000;
 
         Ignite ig0 = startGrids(2);
@@ -268,6 +282,8 @@ public class IgniteWalHistoryReservationsSelfTest extends GridCommonAbstractTest
      * @throws Exception If failed.
      */
     public void testNodeLeftDuringExchange() throws Exception {
+        System.setProperty(IGNITE_WAL_REBALANCE_THRESHOLD, "0");
+
         final int entryCnt = 10_000;
         final int initGridCnt = 4;
 


Mime
View raw message