ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-6081) .NET: Cannot get from cache values which were stored in cache with PutAll
Date Wed, 30 Aug 2017 15:33:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-6081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147444#comment-16147444
] 

Pavel Tupitsyn commented on IGNITE-6081:
----------------------------------------

Missing detachment is, indeed, the root cause.
Reproducer: use PutAll with multiple objects that reference each other.

> .NET: Cannot get from cache values which were stored in cache with PutAll
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-6081
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6081
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.1
>            Reporter: Igor Sapego
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>             Fix For: 2.3
>
>
> If you try to put multiple non-primitive values with dictionary property to cache using
{{PutAll}}, you'd get an exception on attempt to read those values. Code example below:
> {code}
> var entries = new Dictionary<long, SomeType>();
> for (int i = 0; i < 100; i++)
>     entries.Add(i, new SomeType { Id = i });
> var cache = Ignition.GetIgnite().GetCache<long, SomeType>("CacheName");
> cache.PutAll(entries);
> cache.Get(42);
> {code}
> Pay attention, that {{SomeType}} should have dictionary property.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message