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 A98A6200B7E for ; Mon, 22 Aug 2016 09:36:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A81B5160ADE; Mon, 22 Aug 2016 07:36:59 +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 ECFA7160ABD for ; Mon, 22 Aug 2016 09:36:58 +0200 (CEST) Received: (qmail 41289 invoked by uid 500); 22 Aug 2016 07:36:58 -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 41206 invoked by uid 99); 22 Aug 2016 07:36:58 -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, 22 Aug 2016 07:36:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B7EFDDFA1E; Mon, 22 Aug 2016 07:36:57 +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: Mon, 22 Aug 2016 07:37:01 -0000 Message-Id: <5bf76b34a8054fd6820c982d48432263@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/32] ignite git commit: IGNITE-826: Removed HadoopHashMapSelfTest.testAllocation() as it tested nothing. archived-at: Mon, 22 Aug 2016 07:36:59 -0000 IGNITE-826: Removed HadoopHashMapSelfTest.testAllocation() as it tested nothing. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/78aa065b Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/78aa065b Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/78aa065b Branch: refs/heads/ignite-3220-1 Commit: 78aa065b4c7b05381b1fa31159b74969ec4a2bfe Parents: 89bce0f Author: vozerov-gridgain Authored: Thu Jul 21 13:15:35 2016 +0300 Committer: vozerov-gridgain Committed: Mon Aug 15 12:29:52 2016 +0300 ---------------------------------------------------------------------- .../collections/HadoopHashMapSelfTest.java | 56 ++------------------ 1 file changed, 5 insertions(+), 51 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/78aa065b/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/shuffle/collections/HadoopHashMapSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/shuffle/collections/HadoopHashMapSelfTest.java b/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/shuffle/collections/HadoopHashMapSelfTest.java index 2e1f66e..c0f8325 100644 --- a/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/shuffle/collections/HadoopHashMapSelfTest.java +++ b/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/shuffle/collections/HadoopHashMapSelfTest.java @@ -36,60 +36,14 @@ import org.apache.ignite.internal.util.typedef.X; * */ public class HadoopHashMapSelfTest extends HadoopAbstractMapTest { - - public void testAllocation() throws Exception { - fail("https://issues.apache.org/jira/browse/IGNITE-826"); - - final GridUnsafeMemory mem = new GridUnsafeMemory(0); - - long size = 3L * 1024 * 1024 * 1024; - - final long chunk = 16;// * 1024; - - final int page = 4 * 1024; - - final int writes = chunk < page ? 1 : (int)(chunk / page); - - final long cnt = size / chunk; - - assert cnt < Integer.MAX_VALUE; - - final int threads = 4; - - long start = System.currentTimeMillis(); - - multithreaded(new Callable() { - @Override public Object call() throws Exception { - int cnt0 = (int)(cnt / threads); - - for (int i = 0; i < cnt0; i++) { - long ptr = mem.allocate(chunk); - - for (int j = 0; j < writes; j++) - mem.writeInt(ptr + j * page, 100500); - } - - return null; - } - }, threads); - - X.println("End: " + (System.currentTimeMillis() - start) + " mem: " + mem.allocatedSize() + " cnt: " + cnt); - - Thread.sleep(30000); - } - - - /** */ + /** + * Test simple map. + * + * @throws Exception If failed. + */ public void testMapSimple() throws Exception { GridUnsafeMemory mem = new GridUnsafeMemory(0); -// mem.listen(new GridOffHeapEventListener() { -// @Override public void onEvent(GridOffHeapEvent evt) { -// if (evt == GridOffHeapEvent.ALLOCATE) -// U.dumpStack(); -// } -// }); - Random rnd = new Random(); int mapSize = 16 << rnd.nextInt(3);