Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 82B39200B41 for ; Thu, 7 Jul 2016 17:52:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 815A5160A68; Thu, 7 Jul 2016 15:52:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C80D7160A4F for ; Thu, 7 Jul 2016 17:52:07 +0200 (CEST) Received: (qmail 77512 invoked by uid 500); 7 Jul 2016 15:52:06 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 77500 invoked by uid 99); 7 Jul 2016 15:52:06 -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; Thu, 07 Jul 2016 15:52:06 +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 CA2EBCAC09 for ; Thu, 7 Jul 2016 15:52:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vYw6AO47CrIN for ; Thu, 7 Jul 2016 15:52:03 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E5E935FBC9 for ; Thu, 7 Jul 2016 15:52:02 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id s126so17944439qkh.2 for ; Thu, 07 Jul 2016 08:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qoPctzGJArn8IWjQ2JoJaQeXGV/hpx4jtUAFHZeVcII=; b=Qimz5JBlIrtnHcM8n5vmdVzo1wNsJ+vTJY/Ux/9Oy53EyK92BIqRSV4PVsJ+m6kaij 9681DrB+bz5snI2O5EEuraynQJVh5b0jSvDqpA3KzRswMu23+4wcWQhKRo+ZQ4u289JQ twx6UVT6jm0huOMDvKwGlOWokJNJd5uKeQTEqX/fddR7DndvIYUGaN9ndjRcJTrWmVh3 ttOMdDJmqvkvrqM3G6fNXUhx0pmeJImHLynOAY66hPNrSFQ302gA7igKn2pEUQIU6xhO yVIcGGpjolGXT+aGIZ859asoydKOQqRAqxifj4DRynEhw8USLQGq9IyWi+Rs3LWGuwDK mHjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qoPctzGJArn8IWjQ2JoJaQeXGV/hpx4jtUAFHZeVcII=; b=i0Tv+ybjsRuN0G+Pgv7XjIxW3xpkPX4OcVCUv8dHWogjFSJhjlU2EeC5oBehE9QF17 Kvzt9MqUMskLBSDNE8q9H1RYhkcD8BjEdP3KsiWX176S9L0AeFkyQyFA8ztHxuNsNJV+ t/9GAGcjdnsYKXVgrJs/2ZjCceWxx4QvgOH5YXBsBK5SaEOzZztTdkeNFrTDUG05kMcy TwPHshyYb7IiK+ZudQNpctjiXpwLXG60GldCLRxwto4JRlAm3XoAxPMxM9cNbivxNPFJ ntGLI8GAFhuBJRPDZTWDXMibQV2BwQpAy++qUh1OQXRKcJUrNUBv9H6kdSD8QYJMtsqx fWcA== X-Gm-Message-State: ALyK8tJtF08WSnGx2ZF8h12oS5G6NxoVOijXye2vruCf9NAfD/ee0jIQFG3BdNgeTCbIGbmr4+FejT18cF4RTw== X-Received: by 10.55.188.198 with SMTP id m189mr994006qkf.205.1467906715580; Thu, 07 Jul 2016 08:51:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.37.72 with HTTP; Thu, 7 Jul 2016 08:51:55 -0700 (PDT) In-Reply-To: References: <8F65402F-FB05-4944-8C23-FCDEF0E58F44@gridgain.com> From: Alexei Scherbakov Date: Thu, 7 Jul 2016 18:51:55 +0300 Message-ID: Subject: Re: IGNITE-2795 To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c048d24587f0405370daa7f archived-at: Thu, 07 Jul 2016 15:52:08 -0000 --94eb2c048d24587f0405370daa7f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've updated the fix. Currently all the copying is performed inside query iterators only if needed. 2016-07-07 14:38 GMT+03:00 Alexei Scherbakov = : > Denis, > > I think the current state of fix for SQL queries is consistent with the > highlighted topics, except > > - server node mustn=E2=80=99t create a copy if a result set will be trans= ferred to > a remote node; > > I afraid it would be difficult to implement without interfering with > current implementation too much. > Will look at this more thoughtfully. > > Anyway, it would be useful for me if someone will review the current stat= e > and provide suggestions. > > > 2016-07-07 13:32 GMT+03:00 Denis Magda : > >> I would say that, yes, we should make copyOnRead flag consistent across >> all cache =E2=80=98get=E2=80=99 like operations. However we need to make= sure that the copy >> is not created in the following cases >> >> - server node mustn=E2=80=99t create a copy if a result set will be tran= sferred >> to a remote node; >> - client node or other remote node mustn=E2=80=99t create a copy after i= t >> receives the result set from the other node. >> >> All this means that the copy has to be created if: >> - node (server) executes local queries or iterates over local data set; >> - client does the same executing queries or iterating over its local >> cache. >> - in my understanding, in OFF_HEAP mode in doesn=E2=80=99t make sense to= make a >> copy in any case since Java heap already has a copy of data from off hea= p. >> However this part must be clarified by someone else from the community. >> >> Would you mind covering this scenarios in the tests and implementation? >> >> Igniters, other thoughts on this? >> >> =E2=80=94 >> Denis >> >> > On Jul 7, 2016, at 12:18 PM, Alexei Scherbakov < >> alexey.scherbakoff@gmail.com> wrote: >> > >> > Igniters, >> > >> > I implemented a fix for copy-on-read semantics for cache objects >> returned >> > from SQL queries and need a review. >> > >> > See the issue for >> > details on PR. >> > >> > While developing a fix I also noticed the same bug in local cache >> > iterators. >> > >> > To make a behavior of copyOnRead consistent across all cache >> operations, I >> > think we should fix it as well. >> > >> > Thoughts? >> > >> > -- >> > >> > Best regards, >> > Alexei Scherbakov >> >> > > > -- > > Best regards, > Alexei Scherbakov > --=20 Best regards, Alexei Scherbakov --94eb2c048d24587f0405370daa7f--