[ https://issues.apache.org/jira/browse/IGNITE-5465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049255#comment-16049255 ]
Alexander Paschenko edited comment on IGNITE-5465 at 6/14/17 2:53 PM: ---------------------------------------------------------------------- Here's stack trace of one error observed during test run {code} java.lang.IllegalStateException: Getting affinity for topology version earlier than affinity is calculated [locNode=TcpDiscoveryNode [id=c71c7215-2939-4e15-8f27-3124aa600000, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1497451492097, loc=true, ver=2.1.0#19700101-sha1:00000000, isClient=false], grp=SQL_PUBLIC_CITY, topVer=AffinityTopologyVersion [topVer=4, minorTopVer=7], head=AffinityTopologyVersion [topVer=4, minorTopVer=9], history=[AffinityTopologyVersion [topVer=4, minorTopVer=9]]] at org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:464) at org.apache.ignite.internal.processors.cache.CacheGroupContext.processAffinityAssignmentRequest0(CacheGroupContext.java:887) at org.apache.ignite.internal.processors.cache.CacheGroupContext.processAffinityAssignmentRequest(CacheGroupContext.java:873) at org.apache.ignite.internal.processors.cache.CacheGroupContext.access$000(CacheGroupContext.java:68) at org.apache.ignite.internal.processors.cache.CacheGroupContext$2.apply(CacheGroupContext.java:835) at org.apache.ignite.internal.processors.cache.CacheGroupContext$2.apply(CacheGroupContext.java:833) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.processMessage(GridCacheIoManager.java:911) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:430) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:349) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:294) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$100(GridCacheIoManager.java:102) at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1$1$1.run(GridCacheIoManager.java:197) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6697) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$1.body(GridClosureProcessor.java:817) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} was (Author: al.psc): {code} java.lang.IllegalStateException: Getting affinity for topology version earlier than affinity is calculated [locNode=TcpDiscoveryNode [id=c71c7215-2939-4e15-8f27-3124aa600000, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1497451492097, loc=true, ver=2.1.0#19700101-sha1:00000000, isClient=false], grp=SQL_PUBLIC_CITY, topVer=AffinityTopologyVersion [topVer=4, minorTopVer=7], head=AffinityTopologyVersion [topVer=4, minorTopVer=9], history=[AffinityTopologyVersion [topVer=4, minorTopVer=9]]] at org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:464) at org.apache.ignite.internal.processors.cache.CacheGroupContext.processAffinityAssignmentRequest0(CacheGroupContext.java:887) at org.apache.ignite.internal.processors.cache.CacheGroupContext.processAffinityAssignmentRequest(CacheGroupContext.java:873) at org.apache.ignite.internal.processors.cache.CacheGroupContext.access$000(CacheGroupContext.java:68) at org.apache.ignite.internal.processors.cache.CacheGroupContext$2.apply(CacheGroupContext.java:835) at org.apache.ignite.internal.processors.cache.CacheGroupContext$2.apply(CacheGroupContext.java:833) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.processMessage(GridCacheIoManager.java:911) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:430) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:349) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:294) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$100(GridCacheIoManager.java:102) at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1$1$1.run(GridCacheIoManager.java:197) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6697) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$1.body(GridClosureProcessor.java:817) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} > CREATE TABLE: add multithreaded tests > ------------------------------------- > > Key: IGNITE-5465 > URL: https://issues.apache.org/jira/browse/IGNITE-5465 > Project: Ignite > Issue Type: Task > Components: sql > Reporter: Vladimir Ozerov > Assignee: Alexander Paschenko > Labels: important > Fix For: 2.1 > > > We need to add multithreaded tests for {{CREATE TABLE}} and {{DROP TABLE}} > commands in a similar way as we did that for indexes > ({{DynamicIndexAbstractConcurrentSelfTest}}. > Let's test the following case: > - Create and drop of the same several tables from different threads and > different nodes (including a client). > - Success criteria: nothing hangs and in the end table/cache is either > doesn't exist, or exists and operational (verify through DML and SELECT > queries). > AFAIK there is a bug in how we start caches dynamically, so honestly there is > a high chance that this test will not work as expected due to non-SQL bugs. > So at the very least we must ensure that it either works, or doesn't work due > to a problem outside of DDL engine. -- This message was sent by Atlassian JIRA (v6.4.14#64029)