Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A820817CEA for ; Mon, 13 Apr 2015 11:53:22 +0000 (UTC) Received: (qmail 55977 invoked by uid 500); 13 Apr 2015 11:53:22 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 55914 invoked by uid 500); 13 Apr 2015 11:53:22 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 55904 invoked by uid 99); 13 Apr 2015 11:53:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 11:53:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Apr 2015 11:52:58 +0000 Received: (qmail 53923 invoked by uid 99); 13 Apr 2015 11:52:55 -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; Mon, 13 Apr 2015 11:52:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 14F1EE0D55; Mon, 13 Apr 2015 11:52:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.incubator.apache.org Date: Mon, 13 Apr 2015 11:53:11 -0000 Message-Id: <8e50c74db4684b15adc8dfa17d87427b@git.apache.org> In-Reply-To: <3101ed6018804daa8478665e506ddc61@git.apache.org> References: <3101ed6018804daa8478665e506ddc61@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [18/50] incubator-ignite git commit: IGNITE-721 - Restoring test. X-Virus-Checked: Checked by ClamAV on apache.org IGNITE-721 - Restoring test. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/bf7b9f86 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/bf7b9f86 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/bf7b9f86 Branch: refs/heads/ignite-gg-9991 Commit: bf7b9f861add6a9bf73513066938fc49384ad381 Parents: c0085a3 Author: Alexey Goncharuk Authored: Sat Apr 11 00:47:00 2015 -0700 Committer: Alexey Goncharuk Committed: Sat Apr 11 00:47:00 2015 -0700 ---------------------------------------------------------------------- .../IgniteFairAffinityDynamicCacheSelfTest.java | 36 +++++++++----------- 1 file changed, 17 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7b9f86/modules/core/src/test/java/org/apache/ignite/cache/affinity/fair/IgniteFairAffinityDynamicCacheSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/cache/affinity/fair/IgniteFairAffinityDynamicCacheSelfTest.java b/modules/core/src/test/java/org/apache/ignite/cache/affinity/fair/IgniteFairAffinityDynamicCacheSelfTest.java index 90571a4..18b77e0 100644 --- a/modules/core/src/test/java/org/apache/ignite/cache/affinity/fair/IgniteFairAffinityDynamicCacheSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/cache/affinity/fair/IgniteFairAffinityDynamicCacheSelfTest.java @@ -70,30 +70,28 @@ public class IgniteFairAffinityDynamicCacheSelfTest extends GridCommonAbstractTe * @throws Exception If failed. */ public void testStartStopCache() throws Exception { - for (int k = 0; k < 10; k++) { - CacheConfiguration cacheCfg = new CacheConfiguration<>(); + CacheConfiguration cacheCfg = new CacheConfiguration<>(); - cacheCfg.setCacheMode(CacheMode.PARTITIONED); - cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); - cacheCfg.setBackups(1); - cacheCfg.setName("test"); - cacheCfg.setAffinity(new FairAffinityFunction()); + cacheCfg.setCacheMode(CacheMode.PARTITIONED); + cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); + cacheCfg.setBackups(1); + cacheCfg.setName("test"); + cacheCfg.setAffinity(new FairAffinityFunction()); - final IgniteCache cache = ignite(0).createCache(cacheCfg); + final IgniteCache cache = ignite(0).createCache(cacheCfg); - for (int i = 0; i < 10_000; i++) - cache.put(i, i); + for (int i = 0; i < 10_000; i++) + cache.put(i, i); - IgniteInternalFuture destFut = GridTestUtils.runAsync(new Callable() { - @Override - public Object call() throws Exception { - ignite(0).destroyCache(cache.getName()); + IgniteInternalFuture destFut = GridTestUtils.runAsync(new Callable() { + @Override + public Object call() throws Exception { + ignite(0).destroyCache(cache.getName()); - return null; - } - }); + return null; + } + }); - destFut.get(2000L); - } + destFut.get(2000L); } }