Details
Description
When persistence is enabled and node restarts, platform cache is empty and remains empty even after read operations.
var cfg = new IgniteConfiguration { DataStorageConfiguration = new DataStorageConfiguration { DefaultDataRegionConfiguration = new DataRegionConfiguration { Name = DataStorageConfiguration.DefaultDataRegionName, PersistenceEnabled = true } } }; var cacheCfg = new CacheConfiguration { Name = "c", PlatformCacheConfiguration = new() }; using (var ignite = Ignition.Start(cfg)) { ignite.GetCluster().SetActive(true); var cache = ignite.GetOrCreateCache<int, int>(cacheCfg); cache[1] = 1; Console.WriteLine(">>> Cache size:" + cache.GetSize()); Console.WriteLine(">>> Platform cache size:" + cache.GetLocalSize(CachePeekMode.Platform)); } using (var ignite = Ignition.Start(cfg)) { ignite.GetCluster().SetActive(true); var cache = ignite.GetOrCreateCache<int, int>(cacheCfg); Console.WriteLine(">>> Cache size:" + cache.GetSize()); Console.WriteLine(">>> Platform cache size:" + cache.GetLocalSize(CachePeekMode.Platform)); }
Attachments
Attachments
Issue Links
- is related to
-
IGNITE-12882 .NET: Serve local Scan queries directly from platform near cache
-
- Resolved
-
- links to