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 80AD1200B80 for ; Wed, 14 Sep 2016 13:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F879160ADE; Wed, 14 Sep 2016 11:10:22 +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 48746160ADC for ; Wed, 14 Sep 2016 13:10:20 +0200 (CEST) Received: (qmail 34939 invoked by uid 500); 14 Sep 2016 11:10:19 -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 33948 invoked by uid 99); 14 Sep 2016 11:10:18 -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; Wed, 14 Sep 2016 11:10:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2D1A0F0BE2; Wed, 14 Sep 2016 11:10:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Date: Wed, 14 Sep 2016 11:10:51 -0000 Message-Id: In-Reply-To: <405a5f4a1979449aa9ebf08fe75e1c58@git.apache.org> References: <405a5f4a1979449aa9ebf08fe75e1c58@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/50] ignite git commit: IGNITE-3775: IGFS: Uncommented deadlock tests. This closes #1044. archived-at: Wed, 14 Sep 2016 11:10:22 -0000 IGNITE-3775: IGFS: Uncommented deadlock tests. This closes #1044. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c85b7021 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c85b7021 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c85b7021 Branch: refs/heads/ignite-3661 Commit: c85b7021270730e72369dd97aacc3c3dd017851d Parents: e1c7937 Author: iveselovskiy Authored: Thu Sep 8 15:10:11 2016 +0300 Committer: vozerov-gridgain Committed: Thu Sep 8 15:10:11 2016 +0300 ---------------------------------------------------------------------- .../cache/GridCacheAbstractFullApiSelfTest.java | 2 +- .../processors/igfs/IgfsAbstractSelfTest.java | 31 ++++++++++---------- 2 files changed, 16 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c85b7021/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java index 3f4d812..a31c82e 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java @@ -296,7 +296,7 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract for (int i = 0; i < gridCount(); i++) { Boolean clientMode = grid(i).configuration().isClientMode(); - if (clientMode) + if (clientMode != null && clientMode) // Can be null in multi jvm tests. continue; grid(0).services(grid(0).cluster()).deployNodeSingleton(SERVICE_NAME1, new DummyServiceImpl()); http://git-wip-us.apache.org/repos/asf/ignite/blob/c85b7021/modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractSelfTest.java index c9b08d9..89979ad 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractSelfTest.java @@ -2290,22 +2290,21 @@ public abstract class IgfsAbstractSelfTest extends IgfsAbstractBaseSelfTest { private void checkDeadlocksRepeat(final int lvlCnt, final int childrenDirPerLvl, final int childrenFilePerLvl, int primaryLvlCnt, int renCnt, int delCnt, int updateCnt, int mkdirsCnt, int createCnt) throws Exception { - // TODO: Enable. -// if (relaxedConsistency()) -// return; -// -// for (int i = 0; i < REPEAT_CNT; i++) { -// try { -// checkDeadlocks(lvlCnt, childrenDirPerLvl, childrenFilePerLvl, primaryLvlCnt, renCnt, delCnt, -// updateCnt, mkdirsCnt, createCnt); -// -// if (i % 10 == 0) -// X.println(" - " + i); -// } -// finally { -// clear(igfs, igfsSecondary); -// } -// } + if (relaxedConsistency()) + return; + + for (int i = 0; i < REPEAT_CNT; i++) { + try { + checkDeadlocks(lvlCnt, childrenDirPerLvl, childrenFilePerLvl, primaryLvlCnt, renCnt, delCnt, + updateCnt, mkdirsCnt, createCnt); + + if (i % 10 == 0) + X.println(" - " + i); + } + finally { + clear(igfs, igfsSecondary); + } + } } /**