[ https://issues.apache.org/jira/browse/IGNITE-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Ozerov updated IGNITE-3021: ------------------------------------ Fix Version/s: (was: 1.6) 1.7 > 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: Ivan Veselovsky > 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)