From issues-return-59632-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Mar 21 18:10:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 52CF5180651 for ; Wed, 21 Mar 2018 18:10:03 +0100 (CET) Received: (qmail 16897 invoked by uid 500); 21 Mar 2018 17:10:02 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 16887 invoked by uid 99); 21 Mar 2018 17:10:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2018 17:10:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CDC95C0006 for ; Wed, 21 Mar 2018 17:10:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id V959sA5nMPfU for ; Wed, 21 Mar 2018 17:10:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E42E05F1EC for ; Wed, 21 Mar 2018 17:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 74647E0D4B for ; Wed, 21 Mar 2018 17:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 288F4214C1 for ; Wed, 21 Mar 2018 17:10:00 +0000 (UTC) Date: Wed, 21 Mar 2018 17:10:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7682) C++: LocalSize cache functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 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)