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

Pavel Tupitsyn updated IGNITE-16242:
------------------------------------
    Description: 
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:csharp}
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}


  was: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.


> .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
>             Fix For: 2.13
>
>
> 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:csharp}
> 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.1#820001)

Reply via email to