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 8ACAD200B29 for ; Thu, 30 Jun 2016 12:15:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 894D8160A51; Thu, 30 Jun 2016 10:15:12 +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 CFF52160A63 for ; Thu, 30 Jun 2016 12:15:11 +0200 (CEST) Received: (qmail 50468 invoked by uid 500); 30 Jun 2016 10:15:10 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 50276 invoked by uid 99); 30 Jun 2016 10:15:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 10:15:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79DAC2C02A9 for ; Thu, 30 Jun 2016 10:15:10 +0000 (UTC) Date: Thu, 30 Jun 2016 10:15:10 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (IGNITE-3021) Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 10:15:12 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Ozerov closed IGNITE-3021. ----------------------------------- > Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes. > ------------------------------------------------------------------------------------------------------------ > > Key: IGNITE-3021 > URL: https://issues.apache.org/jira/browse/IGNITE-3021 > Project: Ignite > Issue Type: Bug > Components: IGFS > Affects Versions: ignite-1.4 > Reporter: Ivan Veselovsky > Assignee: Vladimir Ozerov > Fix For: 1.7 > > > Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes on master branch: > {code} > ------- Stderr: ------- > [15:16:32,400][ERROR][main][root] Test failed. > junit.framework.AssertionFailedError: expected:<1> but was:<2> > at junit.framework.Assert.fail(Assert.java:57) > at junit.framework.Assert.failNotEquals(Assert.java:329) > at junit.framework.Assert.assertEquals(Assert.java:78) > at junit.framework.Assert.assertEquals(Assert.java:234) > at junit.framework.Assert.assertEquals(Assert.java:241) > at junit.framework.TestCase.assertEquals(TestCase.java:409) > at org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest.testCreateFileColocated(IgfsStreamsSelfTest.java:237) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at junit.framework.TestCase.runTest(TestCase.java:176) > at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1759) > at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118) > at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1697) > at java.lang.Thread.run(Thread.java:745) > {code} > The problem is that data cache rebalancing happens during the test, that causes data blocks affinity calculation to be not reproducible: block that initially maps to 0-th node after some time maps to a different node. > Suggested fix is to switch off automatic rebelancing, and do the rebalancing manually only once upon the test beginning. -- This message was sent by Atlassian JIRA (v6.3.4#6332)