You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Luchnikov Alexander (Jira)" <ji...@apache.org> on 2022/05/13 10:28:00 UTC

[jira] [Updated] (IGNITE-16242) .NET: Platform cache is not restored from persistent storage on node restart

     [ https://issues.apache.org/jira/browse/IGNITE-16242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luchnikov Alexander updated IGNITE-16242:
-----------------------------------------
    Labels: .NET ise.lts  (was: .NET)

> .NET: Platform cache is not restored from persistent storage on node restart
> ----------------------------------------------------------------------------
>
>                 Key: IGNITE-16242
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16242
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: .NET, ise.lts
>             Fix For: 2.13
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When persistence is enabled and node restarts, [platform cache|https://ignite.apache.org/docs/latest/net-specific/net-platform-cache] is empty and remains empty even after read operations.
> {code:c#}
> 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));
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)