[jira] [Commented] (IGNITE-3021) Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes.

2016-06-30 Thread Ivan Veselovsky (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15356888#comment-15356888
 ] 

Ivan Veselovsky commented on IGNITE-3021:
-

Invocation in the test beginning {code}awaitPartitionMapExchange();{code} or 
{code}IgniteConfiguration cfg = 
cfg.setLateAffinityAssignment(false);
{code}
when making the configuration solves the problem. Reason is that before initial 
partition map exchange affinity function considers one node to be backup of 
another, so it may really return 2 nodes.

> 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)


[jira] [Commented] (IGNITE-3021) Test org.apache.ignite.internal.processors.igfs.IgfsStreamsSelfTest#testCreateFileColocated fails sometimes.

2016-04-18 Thread Ivan Veselovsky (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15246148#comment-15246148
 ] 

Ivan Veselovsky commented on IGNITE-3021:
-

Fact is that sometimes topology changes happen during the test (this can be 
detected by getting the AffinityTopologyVersion in the begining and in the end 
of the test), but even if we filter out such cases, the test still fails 
sometimes. Also data cache rebalancing may affect the situation, but manual 
rebalancing in the beginning also does not completely fix the issue.
Needs deeper investigation.

> 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)