You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2016/06/30 10:15:10 UTC
[jira] [Resolved] (IGNITE-3021) Test
org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated
fails sometimes.
[ https://issues.apache.org/jira/browse/IGNITE-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Ozerov resolved IGNITE-3021.
-------------------------------------
Resolution: Fixed
Assignee: Vladimir Ozerov (was: Ivan Veselovsky)
> 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)