[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16702855#comment-16702855 ] ASF GitHub Bot commented on IGNITE-8640: Github user asfgit closed the pull request at: https://github.com/apache/ignite/pull/4480 > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16702234#comment-16702234 ] Ignite TC Bot commented on IGNITE-8640: --- {panel:title=No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel} [TeamCity Run All Results|https://ci.ignite.apache.org/viewLog.html?buildId=2415518buildTypeId=IgniteTests24Java8_RunAll] > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16701760#comment-16701760 ] Denis Garus commented on IGNITE-8640: - [~agoncharuk] , ok. I've fixed your comments and started RunnAll on TC.bot. Thx! > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16701537#comment-16701537 ] Alexey Goncharuk commented on IGNITE-8640: -- [~garus.d.g], the changes look reasonable to me. As for {{SqlIllegalSchemaSelfTest}}, let's modify the test a bit more and add a second attempt to start an invalid cache, as Vladimir Ozerov suggested in IGNITE-9347. Then we can close both tickets. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16700629#comment-16700629 ] Ignite TC Bot commented on IGNITE-8640: --- {panel:title=Possible Blockers|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1} {color:#d04437}MVCC Queries{color} [[tests 7|https://ci.ignite.apache.org/viewLog.html?buildId=2406918]] * IgniteCacheMvccSqlTestSuite: CacheMvccPartitionedSqlTxQueriesWithReducerTest.testQueryReducerDeadlockInsertWithStmtTimeout - 0,0% fails in last 100 master runs. {color:#d04437}ZooKeeper (Discovery) 2{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=2406907]] * ZookeeperDiscoverySpiTestSuite2: GridCachePartitionedNodeRestartTest.testRestartWithTxSixNodesTwoBackups - 0,0% fails in last 100 master runs. {color:#d04437}ZooKeeper (Discovery) 1{color} [[tests 0 TIMEOUT , Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=2406906]] {panel} [TeamCity Run All Results|https://ci.ignite.apache.org/viewLog.html?buildId=2349880buildTypeId=IgniteTests24Java8_RunAll] > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16700217#comment-16700217 ] Denis Garus commented on IGNITE-8640: - [~slava.koptilin], OK. I've fixed it. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at java.lang.Thread.run(Thread.java:748) >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16698840#comment-16698840 ] Vyacheslav Koptilin commented on IGNITE-8640: - Hello [~garus.d.g], In general, I have no objections related to the proposed fix, but it seems that we need to modify tests. Please take into account the following note: - the definition of {{IgniteCache.getOrCreateCache()}} states that this method throws {{javax.cache.CacheException}} so, it does not seem correct to me catching {{IgniteCheckedException}} instead of {{CacheException}}. For example, {{SqlIllegalSchemaSelfTest.testBadCacheNameDynamic()}} {code:java} try { node.getOrCreateCache(new CacheConfiguration().setName(QueryUtils.SCHEMA_SYS)); } catch (Throwable e) { assertTrue(hasCause(e, IgniteCheckedException.class, "SQL schema name derived from cache name is reserved (please set explicit SQL " + "schema name through CacheConfiguration.setSqlSchema() or choose another cache name) [" + "cacheName=IGNITE, schemaName=null]")); return; } {code} So, I suggest a trivial change: {code:java} try { node.getOrCreateCache(new CacheConfiguration().setName(QueryUtils.SCHEMA_SYS)); } catch (CacheException e) { assertTrue(hasCause(e, IgniteCheckedException.class, "SQL schema name derived from cache name is reserved (please set explicit SQL " + "schema name through CacheConfiguration.setSqlSchema() or choose another cache name) [" + "cacheName=IGNITE, schemaName=null]")); return; } catch (Throwable e) { fail("Exception class is not as expected [expected=" + CacheException.class + ", actual=" + e.getClass() + ']', e); } fail("Exception has not been thrown."); {code} > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true,
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16696024#comment-16696024 ] Alexey Goncharuk commented on IGNITE-8640: -- [~garus.d.g], never mind, I think I've figured out the reason for the Cache 7 suite failure and it is unrelated to this ticket and your changes. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16695887#comment-16695887 ] Alexey Goncharuk commented on IGNITE-8640: -- [~garus.d.g], I see an intermittent failure of Cache 7 test suite (IgniteAbstractDynamicCacheStartFailTest#testBrokenCacheStoreOnAllNodes) sometimes on TC. The test fails in master as well, however from the failure context it seems that it may be covered by this ticket. Can you please asses whether you can fix this? >From a quick debug I see that the NPE is caused by the fact that we did not >call {{GridDhtPartitionTopologyImpl#updateTopologyVersion}} because of the >simulated exception, but later during PME we attempt to call >{{afterStateRestored()}} for this group, so it looks like that the started >group is not cleared from the groups collection. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16695595#comment-16695595 ] Ignite TC Bot commented on IGNITE-8640: --- {panel:title=No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel} [TeamCity Run All Results|https://ci.ignite.apache.org/viewLog.html?buildId=2349880buildTypeId=IgniteTests24Java8_RunAll] > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16695238#comment-16695238 ] Ignite TC Bot commented on IGNITE-8640: --- {panel:title=Possible Blockers|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1} {color:#d04437}Platform .NET{color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=2370890]] * exe: ServicesTestAsync.TestDeployAllException(False) - 0,0% fails in last 100 master runs. {panel} [TeamCity Run All Results|https://ci.ignite.apache.org/viewLog.html?buildId=2370890buildTypeId=IgniteTests24Java8_PlatformNet] > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16686455#comment-16686455 ] Ivan Bessonov commented on IGNITE-8640: --- Hi [~garus.d.g], I encountered the same issue on TC, like [in this case|https://ggtc.gridgain.com/viewLog.html?buildId=1281238=id8xIgniteGridGainTestsJava8_Basic=buildResultsDiv], for example. Can you please clarify status of the issue? If you have no time to finish it then you can reassign it to me, I already consulted with [~slava.koptilin] about the fix. Thank you! > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16640074#comment-16640074 ] Vyacheslav Daradur commented on IGNITE-8640: Hi [~garus.d.g], [~NIzhikov] I've muted a test [{{EncryptedCacheCreateTest.testCreateEncryptedNotPersistedCacheFail}}|https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8=3738688550423537901=%3Cdefault%3E=testDetails] on TC with a link to this task. Please, unmute the test once the issue will be fixed. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452)
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16620382#comment-16620382 ] Denis Garus commented on IGNITE-8640: - Freezing occurs if a node has a NoOpFailureHandler. In case using, for example, a StopNodeFailureHandler the node will be stopped. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.8 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16605663#comment-16605663 ] Vyacheslav Koptilin commented on IGNITE-8640: - Hello [~SomeFire] [~garus.d.g] Please take a look at the following tests: * SqlIllegalSchemaSelfTest.testBadCacheNameDynamic * SqlIllegalSchemaSelfTest.testBadSchemaLowerDynamic * SqlIllegalSchemaSelfTest.testBadSchemaQuotedDynamic * SqlIllegalSchemaSelfTest.testBadSchemaUpperDynamic At least, checking the expected exception message should be improved/fixed. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.7 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16597543#comment-16597543 ] Ryabov Dmitrii commented on IGNITE-8640: Fix looks good to me. Tests are good. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.7 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2332) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at java.lang.Thread.run(Thread.java:748)
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16596106#comment-16596106 ] Denis Garus commented on IGNITE-8640: - [~vozerov], [~NIzhikov] I've considered adding of cache validation before sending a discovery message. There isn't any problem with cache store instantiation. If CacheConfiguration#storeFactory can't return null, then, I think, it will be enough check, that CacheConfiguration#storeFactory isn't null, because of the validate method has only checks, that cfgStore isn't null. There is another problem, the validation method changes the cache config parameter! It's, obviously, wrong. After some refactorings, we could add a cache validation before creating DynamicCacheStartFuture. It may be considered an improvement. In that ticket, I've fixed the bug related to improper a checked exception handling that can appear in process of cache creation. Tests for IGNITE-1094 uses only RTE for imitation failed cache creation, but it isn't enough. So I expanded unit tests using a checked exception too. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.7 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16588870#comment-16588870 ] Vladimir Ozerov commented on IGNITE-8640: - [~NIzhikov], [~garus.d.g], Igniters, Please also pay attention to IGNITE-9347. This might be complete duplicate, but I am not sure whether this ticket covers described situation as well. I see at least two problems: # In my case exchange worker fails due to assertion, not due to unhandled exception from \{{GridCacheProcessor#validate}}, as IGNITE-1094 appears to already handle this error. # I think it makes to additionally validate cache configuration \{{before}} it is sent through custom discovery message. This way, 99% validation problems will be handled without involving exchange worker at all. Probably the same \{{GridCacheProcessor#validate}} method may be used here. The only thing that concerns me is instantiation of cache store inside this method. Need to understand whether it is legal or not (I think it is ok). > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.7 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16567904#comment-16567904 ] ASF GitHub Bot commented on IGNITE-8640: GitHub user dgarus opened a pull request: https://github.com/apache/ignite/pull/4480 IGNITE-8640 earlier validation of cache config You can merge this pull request into a Git repository by running: $ git pull https://github.com/dgarus/ignite ignte-8640 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/4480.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4480 commit 46e68d648f31163bb704ff832e9553006a26ebd7 Author: Garus Denis Date: 2018-08-03T07:44:11Z IGNITE-8640 earlier validation of cache config > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Assignee: Denis Garus >Priority: Critical > Fix For: 2.7 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at >
[jira] [Commented] (IGNITE-8640) If first createCache fail - Ignite is freezing on next createCache
[ https://issues.apache.org/jira/browse/IGNITE-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16493542#comment-16493542 ] Nikolay Izhikov commented on IGNITE-8640: - The second attempt to createCache will freeze {{IgniteCache cache = ignite.createCache(new CacheConfiguration<>("default"));}}. Note, that *any* exception from {{GridCacheProcessor#validate}} leads to the same freeze. So error doesn't relate to eviction policy. It relates to cache creation process. > If first createCache fail - Ignite is freezing on next createCache > -- > > Key: IGNITE-8640 > URL: https://issues.apache.org/jira/browse/IGNITE-8640 > Project: Ignite > Issue Type: Bug > Components: cache >Affects Versions: 2.6 >Reporter: Nikolay Izhikov >Priority: Critical > Fix For: 2.6 > > > If first {{createCache}} operation fails on some condition inside > {{GridCacheProcessor#validate}} then second {{createCache}} will freeze > forever. > Reproducer: > {code:java} > package org.apache.ignite.internal.processors.cache; > import org.apache.ignite.IgniteCache; > import org.apache.ignite.IgniteCheckedException; > import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy; > import org.apache.ignite.configuration.CacheConfiguration; > import org.apache.ignite.internal.IgniteEx; > import org.apache.ignite.testframework.GridTestUtils; > import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest; > public class CreateCacheFreezeTest extends GridCommonAbstractTest { > public void testCreateEncryptedNotPersistedCacheFail() throws Exception { > IgniteEx ignite = startGrid(0); > > GridTestUtils.assertThrowsWithCause(() -> { > CacheConfiguration cc = new > CacheConfiguration<>("failed"); > cc.setEvictionPolicy(new FifoEvictionPolicy()); > cc.setOnheapCacheEnabled(false); > ignite.createCache(cc); > return 0; > }, IgniteCheckedException.class); > IgniteCache cache = ignite.createCache(new > CacheConfiguration<>("default")); > assertNotNull(cache); > } > } > {code} > Log message: > {noformat} > [2018-05-29 > 16:38:11,958][ERROR][exchange-worker-#38%cache.CreateCacheFreezeTest0%][GridDhtPartitionsExchangeFuture] > Failed to reinitialize local partitions (preloading will be stopped): > GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], discoEvt=DiscoveryCustomEvent > [customMsg=DynamicCacheChangeBatch > [id=67cce1ca361-993dd9c2-f4fe-443b-af43-27e06424e1b0, > reqs=[DynamicCacheChangeRequest [cacheName=failed, hasCfg=true, > nodeId=a525b74c-aec5-4c62-855a-ff96ef30, clientStartOnly=false, > stop=false, destroy=false, disabledAfterStartfalse]], > exchangeActions=ExchangeActions [startCaches=[failed], stopCaches=null, > startGrps=[failed], stopGrps=[], resetParts=null, stateChangeRequest=null], > startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, > minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode > [id=a525b74c-aec5-4c62-855a-ff96ef30, addrs=[127.0.0.1], > sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, intOrder=1, > lastExchangeTime=1527601090538, loc=true, ver=2.5.0#19700101-sha1:, > isClient=false], topVer=1, nodeId8=a525b74c, msg=null, > type=DISCOVERY_CUSTOM_EVT, tstamp=1527601091938]], nodeId=a525b74c, > evt=DISCOVERY_CUSTOM_EVT] > java.lang.AssertionError: stopping=false, groupName=null, caches=[] > at > org.apache.ignite.internal.processors.cache.CacheGroupContext.singleCacheContext(CacheGroupContext.java:375) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition.(GridDhtLocalPartition.java:197) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.getOrCreatePartition(GridDhtPartitionTopologyImpl.java:828) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.initPartitions(GridDhtPartitionTopologyImpl.java:369) > at > org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.beforeExchange(GridDhtPartitionTopologyImpl.java:544) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1190) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:722) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2452) > at >