ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Veselovsky (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-3021) Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes.
Date Mon, 18 Apr 2016 10:31:25 GMT
Ivan Veselovsky created IGNITE-3021:
---------------------------------------

             Summary: 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: 1.4
            Reporter: Ivan Veselovsky
            Assignee: Ivan Veselovsky
             Fix For: 1.6


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)

Mime
View raw message