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 722B7200B72 for ; Fri, 26 Aug 2016 11:16:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 70E4E160AC3; Fri, 26 Aug 2016 09:16:10 +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 4C614160ACC for ; Fri, 26 Aug 2016 11:16:08 +0200 (CEST) Received: (qmail 80944 invoked by uid 500); 26 Aug 2016 09:16:07 -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 79540 invoked by uid 99); 26 Aug 2016 09:16:06 -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; Fri, 26 Aug 2016 09:16:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 604EAEEE7C; Fri, 26 Aug 2016 09:16:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.apache.org Date: Fri, 26 Aug 2016 09:16:30 -0000 Message-Id: <469725fd43d44c4c99c1454b487659c6@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [26/50] ignite git commit: IGNITE-3693: IGFS: Fixed sporadical failures in IgfsLocalSecondaryFileSystemDualAsyncSelfTest.testFormat. This closes #960. archived-at: Fri, 26 Aug 2016 09:16:10 -0000 IGNITE-3693: IGFS: Fixed sporadical failures in IgfsLocalSecondaryFileSystemDualAsyncSelfTest.testFormat. This closes #960. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/fa138321 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/fa138321 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/fa138321 Branch: refs/heads/ignite-3443 Commit: fa13832132ad71cd3b3ad259784e2e7ec5366c28 Parents: 5b57fc0 Author: tledkov-gridgain Authored: Mon Aug 22 17:37:14 2016 +0300 Committer: vozerov-gridgain Committed: Mon Aug 22 17:37:14 2016 +0300 ---------------------------------------------------------------------- .../ignite/internal/processors/igfs/IgfsAbstractSelfTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/fa138321/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 236a589..86c2449 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 @@ -1071,12 +1071,14 @@ public abstract class IgfsAbstractSelfTest extends IgfsCommonAbstractTest { os.write(new byte[10 * 1024 * 1024]); } + awaitFileClose(igfs, FILE); + if (dual) checkExist(igfsSecondary, DIR, SUBDIR, FILE, DIR_NEW, SUBDIR_NEW, FILE_NEW); checkExist(igfs, DIR, SUBDIR, FILE); - assert igfs.info(FILE).length() == 10 * 1024 * 1024; + assertEquals(10 * 1024 * 1024, igfs.info(FILE).length()); assert dataCache.size(new CachePeekMode[] {CachePeekMode.ALL}) > 0;