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

C++: LocalSize cache functions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0.final
    • Fix Version/s: 2.5
    • Component/s: platforms
    • Labels:
      None
    • Environment:

      Ignite builded by jdk1.8.0_152 with sources tag:ignite-2.3
      cpp libs builded by Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3
      all x64

      Description

      LocalSize functions with all variations of CachePeekMode returns same results.
      They always returns all cache size, the sum of all node caches.

      auto cache = IgniteNode.GetCache<...>(cache_name);
      cache.LocalSize(ignite::cache::CachePeekMode::BACKUP)
      cache.LocalSize(ignite::cache::CachePeekMode::NEAR_CACHE)
      cache.LocalSize(ignite::cache::CachePeekMode::OFFHEAP)
      cache.LocalSize(ignite::cache::CachePeekMode::ONHEAP)
      cache.LocalSize(ignite::cache::CachePeekMode::PRIMARY)
      cache.LocalSize(ignite::cache::CachePeekMode::SWAP)
      

      Despite this, manually calculations are correct, and returns local size(cache on this node).

      auto query = cache::query::ScanQuery();
      query.SetLocal(true);
      auto cursor = cache.Query(query);
      
      while (cursor.HasNext()) {
      cache_size++;
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                isapego Igor Sapego
                Reporter:
                Roman_BRR Roman Bastanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: