ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Bastanov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-7682) C++: LocalSize cache functions
Date Tue, 13 Feb 2018 08:16:00 GMT

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

Roman Bastanov updated IGNITE-7682:
-----------------------------------
    Summary: C++: LocalSize cache functions  (was: LocalSize cache functions on C++)

> C++: LocalSize cache functions
> ------------------------------
>
>                 Key: IGNITE-7682
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7682
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>         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
>            Reporter: Roman Bastanov
>            Priority: Major
>
> LocalSize functions with all variations of CachePeekMode returns same results.
> They always returns all cache size, the sum of all node caches.
> {code}
> 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)
> {code}
> Despite this, manually calculations are correct, and returns local size(cache on this
node).
> {code}
> auto query = cache::query::ScanQuery();
> query.SetLocal(true);
> auto cursor = cache.Query(query);
> while (cursor.HasNext()) {
> cache_size++;
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message