You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/21 17:10:00 UTC

[jira] [Commented] (IGNITE-7682) C++: LocalSize cache functions

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

ASF GitHub Bot commented on IGNITE-7682:
----------------------------------------

GitHub user isapego opened a pull request:

    https://github.com/apache/ignite/pull/3674

    IGNITE-7682: CPP: Fixed constant for the LocalSize operation.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-7682

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/3674.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3674
    
----
commit 7887bc506bbf6dde7ff1eb798bdd30f3f389675b
Author: Igor Sapego <is...@...>
Date:   2018-03-21T17:07:21Z

    IGNITE-7682: Fixed constant for the LocalSize operation

----


> 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
>            Assignee: Igor Sapego
>            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)