Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6081

.NET: Cannot get from cache values which were stored in cache with PutAll

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.3
    • platforms
    • None

    Description

      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:

      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);
      

      Pay attention, that SomeType should have dictionary property.

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              isapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: