You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexandr Kuramshin (JIRA)" <ji...@apache.org> on 2017/11/12 17:29:00 UTC

[jira] [Commented] (IGNITE-79) Illegal state exception in affinity assignment cache

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

Alexandr Kuramshin commented on IGNITE-79:
------------------------------------------

Recently reproduced with {{GridServiceProcessorMultiNodeConfigSelfTest}}. Running the whole test class {{testAll()}} fails frequently but not always. This is the cause the test looks flaky on TC.

Log right before an error

{noformat}
[2017-11-11 23:33:34,689][WARN ][tcp-disco-msg-worker-#3%service.GridServiceProcessorMultiNodeConfigSelfTest0%][TcpDiscoverySpi] Failing client node due to not receiving metrics updates from client node within 'IgniteConfiguration.clientFailureDetectionTimeout' (consider increasing configuration property) [timeout=10000, node=TcpDiscoveryNode [id=a3768cec-1275-46a7-aefa-afc238100006, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.1.111], sockAddrs=[/0:0:0:0:0:0:0:1:0, /127.0.0.1:0, akuramshinpc.lan/192.168.1.111:0], discPort=0, order=11, intOrder=9, lastExchangeTime=1510418004405, loc=false, ver=2.3.0#19700101-sha1:00000000, isClient=true]]
[2017-11-11 23:33:34,692][WARN ][disco-event-worker-#36%service.GridServiceProcessorMultiNodeConfigSelfTest0%][GridDiscoveryManager] Node FAILED: TcpDiscoveryNode [id=a3768cec-1275-46a7-aefa-afc238100006, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.1.111], sockAddrs=[/0:0:0:0:0:0:0:1:0, /127.0.0.1:0, akuramshinpc.lan/192.168.1.111:0], discPort=0, order=11, intOrder=9, lastExchangeTime=1510418004405, loc=false, ver=2.3.0#19700101-sha1:00000000, isClient=true]
[2017-11-11 23:33:34,699][INFO ][disco-event-worker-#84%service.GridServiceProcessorMultiNodeConfigSelfTest1%][GridDiscoveryManager] Topology snapshot [ver=17, servers=5, clients=0, CPUs=8, heap=7.1GB]
[2017-11-11 23:33:35,605][INFO ][srvc-deploy-#39%service.GridServiceProcessorMultiNodeConfigSelfTest0%][GridServiceProcessor] Service processor detected a topology change during assignments calculation (will abort current iteration and re-calculate on the newer version): [topVer=AffinityTopologyVersion [topVer=15, minorTopVer=0], newTopVer=AffinityTopologyVersion [topVer=17, minorTopVer=0]]
[2017-11-11 23:33:35,644][ERROR][srvc-deploy-#165%service.GridServiceProcessorMultiNodeConfigSelfTest2%][GridServiceProcessor] Error when executing service: null
{noformat}

Stack trace after 

{noformat}
java.lang.IllegalStateException: Getting affinity for topology version earlier than affinity is calculated [locNode=TcpDiscoveryNode [id=be7e8aae-54b4-419e-94c6-d8eaaaf00002, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47502], discPort=47502, order=3, intOrder=3, lastExchangeTime=1510418014692, loc=true, ver=2.3.0#19700101-sha1:00000000, isClient=false], grp=ignite-sys-cache, topVer=AffinityTopologyVersion [topVer=16, minorTopVer=0], head=AffinityTopologyVersion [topVer=17, minorTopVer=0], history=[AffinityTopologyVersion [topVer=3, minorTopVer=0], AffinityTopologyVersion [topVer=4, minorTopVer=0], AffinityTopologyVersion [topVer=5, minorTopVer=0], AffinityTopologyVersion [topVer=6, minorTopVer=0], AffinityTopologyVersion [topVer=7, minorTopVer=0], AffinityTopologyVersion [topVer=8, minorTopVer=0], AffinityTopologyVersion [topVer=9, minorTopVer=0], AffinityTopologyVersion [topVer=10, minorTopVer=0], AffinityTopologyVersion [topVer=11, minorTopVer=0], AffinityTopologyVersion [topVer=12, minorTopVer=0], AffinityTopologyVersion [topVer=13, minorTopVer=0], AffinityTopologyVersion [topVer=14, minorTopVer=0], AffinityTopologyVersion [topVer=15, minorTopVer=0], AffinityTopologyVersion [topVer=17, minorTopVer=0]]]
	at org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:519)
	at org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.nodes(GridAffinityAssignmentCache.java:419)
	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.nodesByPartition(GridCacheAffinityManager.java:220)
	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.primaryByPartition(GridCacheAffinityManager.java:256)
	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.primaryByKey(GridCacheAffinityManager.java:247)
	at org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.primaryByKey(GridCacheAffinityManager.java:271)
	at org.apache.ignite.internal.processors.service.GridServiceProcessor$TopologyListener$1.run0(GridServiceProcessor.java:1789)
	at org.apache.ignite.internal.processors.service.GridServiceProcessor$DepRunnable.run(GridServiceProcessor.java:1976)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
{noformat}

> Illegal state exception in affinity assignment cache
> ----------------------------------------------------
>
>                 Key: IGNITE-79
>                 URL: https://issues.apache.org/jira/browse/IGNITE-79
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Yakov Zhdanov
>
> {noformat}
> java.lang.IllegalStateException: Getting affinity for topology version earlier than affinity is calculated [locNodeId=41caf5c2-3827-4566-9e52-22dabf51f864, topVer=179, head=180]
> 	at org.gridgain.grid.kernal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:328) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at org.gridgain.grid.kernal.processors.affinity.GridAffinityAssignmentCache.primaryPartitions(GridAffinityAssignmentCache.java:294) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at org.gridgain.grid.kernal.processors.cache.GridCacheAffinityManager.primaryPartitions(GridCacheAffinityManager.java:349) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at org.gridgain.grid.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:478) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at org.gridgain.grid.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionDemandPool$ExchangeWorker.body(GridDhtPartitionDemandPool.java:1285) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151) ~[gridgain-core-6.2.1-p1.jar:na]
> 	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)