Vyacheslav Koptilin created IGNITE-16672: --------------------------------------------
Summary: Attempt to re-create a cache with the same name may lead to error on getting corresponding page store Key: IGNITE-16672 URL: https://issues.apache.org/jira/browse/IGNITE-16672 Project: Ignite Issue Type: Bug Components: cache Reporter: Vyacheslav Koptilin Assignee: Vyacheslav Koptilin The following exception was observed when the user tried to re-create a cache: {noformat} 2022-02-07 16:22:48.419 [exchange-worker-#228] INFO o.a.ignite.internal.exchange.time - Started exchange init [topVer=AffinityTopologyVersion [topVer=50, minorTopVer=4], crd=false, evt=DISCOVERY_CUSTOM_EVT, evtNode=34f488fb-20bd-4d58-942a-61705f452b9d, customEvt=DynamicCacheChangeBatch [id=91d01a4de71-17931425-a2c1-4a3d-a3de-88a0922f8802, reqs=ArrayList [DynamicCacheChangeRequest [cacheName=SQL_PUBLIC_USERPUBCATEGORYMAPPING, hasCfg=true, nodeId=34f488fb-20bd-4d58-942a-61705f452b9d, clientStartOnly=false, stop=false, destroy=false, disabledAfterStartfalse]], exchangeActions=ExchangeActions [startCaches=[SQL_PUBLIC_USERPUBCATEGORYMAPPING], stopCaches=null, startGrps=[SQL_PUBLIC_USERPUBCATEGORYMAPPING], stopGrps=[], resetParts=null, stateChangeRequest=null], startCaches=false], allowMerge=false, exchangeFreeSwitch=false] 2022-02-07 16:22:48.425 [exchange-worker-#228] WARN o.a.i.i.p.cache.GridCacheProcessor - Cache can not be started : cache=SQL_PUBLIC_USERPUBCATEGORYMAPPING 2022-02-07 16:22:48.426 [exchange-worker-#228] ERROR o.a.i.i.p.c.d.d.p.GridDhtPartitionsExchangeFuture - Failed to initialize cache(s) (will try to rollback) [exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=50, minorTopVer=4], discoEvt=DiscoveryCustomEvent [customMsg=DynamicCacheChangeBatch [id=91d01a4de71-17931425-a2c1-4a3d-a3de-88a0922f8802, reqs=ArrayList [DynamicCacheChangeRequest [cacheName=SQL_PUBLIC_USERPUBCATEGORYMAPPING, hasCfg=true, nodeId=34f488fb-20bd-4d58-942a-61705f452b9d, clientStartOnly=false, stop=false, destroy=false, disabledAfterStartfalse]], exchangeActions=ExchangeActions [startCaches=[SQL_PUBLIC_USERPUBCATEGORYMAPPING], stopCaches=null, startGrps=[SQL_PUBLIC_USERPUBCATEGORYMAPPING], stopGrps=[], resetParts=null, stateChangeRequest=null], startCaches=false], affTopVer=AffinityTopologyVersion [topVer=50, minorTopVer=4], super=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=34f488fb-20bd-4d58-942a-61705f452b9d, consistentId=ReportServer-ad69509b-7b83-4bb7-afe4-fa5c3363a646, addrs=ArrayList [10.237.179.33, 127.0.0.1], sockAddrs=HashSet [guerlpatvp004.fg.rbc.com/10.237.179.33:0, /127.0.0.1:0], discPort=0, order=44, intOrder=32, lastExchangeTime=1644244747185, loc=false, ver=8.7.42#20211223-sha1:d06f4211, isClient=true], topVer=50, msgTemplate=null, nodeId8=3736aba2, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1644250844322]], nodeId=34f488fb, evt=DISCOVERY_CUSTOM_EVT], caches=[o.a.i.i.processors.cache.ExchangeActions$CacheGroupActionData@4f39ff02]] org.apache.ignite.IgniteCheckedException: Failed to get page store for the given cache ID (cache has not been started): 3053635 at org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.getStore(FilePageStoreManager.java:1085) at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageReadWriteManagerImpl.read(PageReadWriteManagerImpl.java:65) at org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.read(FilePageStoreManager.java:519) at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl.acquirePage(PageMemoryImpl.java:901) at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl.acquirePage(PageMemoryImpl.java:720) at org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl.acquirePage(PageMemoryImpl.java:701) at org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager.getOrAllocateCacheMetas(GridCacheOffheapManager.java:1077) at org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager.initDataStructures(GridCacheOffheapManager.java:188) at org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.start(IgniteCacheOffheapManagerImpl.java:197) at org.apache.ignite.internal.processors.cache.CacheGroupContext.start(CacheGroupContext.java:1111) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCacheGroup(GridCacheProcessor.java:2455) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.getOrCreateCacheGroupContext(GridCacheProcessor.java:2158) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheContext(GridCacheProcessor.java:1966) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1900) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCaches$55a0e703$1(GridCacheProcessor.java:1775) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCachesIfPossible$14(GridCacheProcessor.java:1745) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCaches(GridCacheProcessor.java:1772) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCachesIfPossible(GridCacheProcessor.java:1743) at org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processCacheStartRequests(CacheAffinitySharedManager.java:1023) at org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:909) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:1463) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:970) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3374) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3199) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119) at java.base/java.lang.Thread.run(Thread.java:829) {noformat} -- This message was sent by Atlassian Jira (v8.20.1#820001)