You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Menshikov (JIRA)" <ji...@apache.org> on 2018/05/11 09:29:00 UTC
[jira] [Comment Edited] (IGNITE-5945) Flaky failure in IgniteCache
5: IgniteCacheAtomicProtocolTest.testPutReaderUpdate2
[ https://issues.apache.org/jira/browse/IGNITE-5945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470817#comment-16470817 ]
Alexander Menshikov edited comment on IGNITE-5945 at 5/11/18 9:28 AM:
----------------------------------------------------------------------
I found out the reason for the problem. As I see, rebalancing can change primary node with near cache when new client nodes appear. I'm not sure this is a valid behaver, but this is what really happens (I have checked it).
So adding a call for *awaitPartitionMapExchange* can fix the problem. I will double check this solution (locally and on TC), prepare PR and update status of the issue when done.
*UPD:*
460 passes locally
was (Author: sharpler):
I found out the reason for the problem. As I see, rebalancing can change primary node with near cache when new client nodes appear. I'm not sure this is a valid behaver, but this is what really happens (I have checked it).
So adding a call for *awaitPartitionMapExchange* can fix the problem. I will double check this solution (locally and on TC), prepare PR and update status of the issue when done.
UPD:
460 passes locally
> Flaky failure in IgniteCache 5: IgniteCacheAtomicProtocolTest.testPutReaderUpdate2
> ----------------------------------------------------------------------------------
>
> Key: IGNITE-5945
> URL: https://issues.apache.org/jira/browse/IGNITE-5945
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Dmitriy Pavlov
> Assignee: Alexander Menshikov
> Priority: Major
> Labels: MakeTeamcityGreenAgain
> Fix For: 2.6
>
>
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.IgniteCacheAtomicProtocolTest#testPutReaderUpdate2
> {noformat}
> junit.framework.AssertionFailedError
> at junit.framework.Assert.fail(Assert.java:55)
> at junit.framework.Assert.assertTrue(Assert.java:22)
> at junit.framework.Assert.assertFalse(Assert.java:39)
> at junit.framework.Assert.assertFalse(Assert.java:47)
> at junit.framework.TestCase.assertFalse(TestCase.java:219)
> at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.IgniteCacheAtomicProtocolTest.readerUpdateDhtFails(IgniteCacheAtomicProtocolTest.java:865)
> at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.IgniteCacheAtomicProtocolTest.testPutReaderUpdate2(IgniteCacheAtomicProtocolTest.java:765)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at junit.framework.TestCase.runTest(TestCase.java:176)
> at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2000)
> at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:132)
> at org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:1915)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Fail is reproducable locally 2 times per 20 runs
> On TeamCity test success rate is 88,2%
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)