You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ilya Lantukh (JIRA)" <ji...@apache.org> on 2015/12/04 09:19:10 UTC

[jira] [Comment Edited] (IGNITE-1692) [Test] DataStreamProcessorSelfTest.testReplicated fails sometimes.

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

Ilya Lantukh edited comment on IGNITE-1692 at 12/4/15 8:18 AM:
---------------------------------------------------------------

The reason of this problem is race condition: sometimes test starts to put data before nodes converge to the same affinity topology version.
This problem is not specific to testReplicated() method, other test methods fail too.
I think calling GridCommonAbstractTest::awaitPartitionMapExchange() after initialization will fix this problem.


was (Author: ilantukh):
The reason of this problem is race condition: sometimes test starts to put data before nodes converge to the same affinity topology version.
This problem is not specific to testReplicated() method, other test methods fail too.
I think calling GridCommonAbstractTest::awaitPartitionMapExchange() after every initialization will fix this problem.

> [Test] DataStreamProcessorSelfTest.testReplicated fails sometimes.
> ------------------------------------------------------------------
>
>                 Key: IGNITE-1692
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1692
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ivan Veselovsky
>            Assignee: Ilya Lantukh
>
> DataStreamProcessorSelfTest.testReplicated fails with ~7% probability with the following error:
> {code}
> org.apache.ignite.IgniteCheckedException: Failed to find server node for cache (all affinity nodes have left the grid or cache was stopped): null
>     at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:6979)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:166)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:115)
>     at org.apache.ignite.internal.util.future.GridCompoundFuture$Listener.apply(GridCompoundFuture.java:311)
>     at org.apache.ignite.internal.util.future.GridCompoundFuture$Listener.apply(GridCompoundFuture.java:302)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListener(GridFutureAdapter.java:262)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListeners(GridFutureAdapter.java:250)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:380)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:346)
>     at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:334)
>     at org.apache.ignite.testframework.GridTestUtils$5.run(GridTestUtils.java:675)
>     at org.apache.ignite.testframework.GridTestUtils$7.call(GridTestUtils.java:966)
>     at org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> Caused by: org.apache.ignite.cache.CacheServerNotFoundException: Failed to find server node for cache (all affinity nodes have left the grid or cache was stopped): null
>     at org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1604)
>     at org.apache.ignite.internal.processors.cache.IgniteCacheFutureImpl.convertException(IgniteCacheFutureImpl.java:56)
>     at org.apache.ignite.internal.util.future.IgniteFutureImpl.get(IgniteFutureImpl.java:122)
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamProcessorSelfTest$1.call(DataStreamProcessorSelfTest.java:232)
>     at org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> Caused by: org.apache.ignite.internal.cluster.ClusterTopologyServerNotFoundException: Failed to find server node for cache (all affinity nodes have left the grid or cache was stopped): null
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.nodes(DataStreamerImpl.java:772)
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.load0(DataStreamerImpl.java:638)
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addDataInternal(DataStreamerImpl.java:547)
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addData(DataStreamerImpl.java:583)
>     at org.apache.ignite.internal.processors.datastreamer.DataStreamProcessorSelfTest$1.call(DataStreamProcessorSelfTest.java:226)
>     at org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)