Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1BEF3200CA4 for ; Tue, 23 May 2017 15:07:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1809B160BD3; Tue, 23 May 2017 13:07:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 62AAD160BB6 for ; Tue, 23 May 2017 15:07:26 +0200 (CEST) Received: (qmail 31104 invoked by uid 500); 23 May 2017 13:07:25 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 31019 invoked by uid 99); 23 May 2017 13:07:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2017 13:07:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 35FFBE00AF; Tue, 23 May 2017 13:07:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.apache.org Date: Tue, 23 May 2017 13:07:26 -0000 Message-Id: <1181ac714aec4a27a871d84a17c5e80a@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [03/18] ignite git commit: ignite-gg-12163 WAL_REBALANCE_THRESHOLD property restored in test archived-at: Tue, 23 May 2017 13:07:27 -0000 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 Authored: Mon May 22 12:13:43 2017 +0300 Committer: Sergey Chugunov 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;