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 7595B200C4C for ; Tue, 4 Apr 2017 18:16:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 742AB160B90; Tue, 4 Apr 2017 16:16:05 +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 B0DB4160B81 for ; Tue, 4 Apr 2017 18:16:04 +0200 (CEST) Received: (qmail 3660 invoked by uid 500); 4 Apr 2017 16:16:03 -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 3649 invoked by uid 99); 4 Apr 2017 16:16:03 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2017 16:16:03 +0000 Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6A51F1A00E8 for ; Tue, 4 Apr 2017 16:16:03 +0000 (UTC) Received: by mail-qk0-f176.google.com with SMTP id d10so146531646qke.1 for ; Tue, 04 Apr 2017 09:16:03 -0700 (PDT) X-Gm-Message-State: AFeK/H15gS2TVNec3+3IsAvqF3RFcqLvD8v85Je4dq+SU37N/Z2RwCvT0GPJrl2s+VdAk5MEtNWp4cvxYVUhXMF4 X-Received: by 10.55.2.7 with SMTP id 7mr25734814qkc.228.1491322561650; Tue, 04 Apr 2017 09:16:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.163 with HTTP; Tue, 4 Apr 2017 09:15:20 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Tue, 4 Apr 2017 09:15:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: IGNITE-4535 : Add option to store deserialized values on-heap To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114563fe8db976054c599704 archived-at: Tue, 04 Apr 2017 16:16:05 -0000 --001a114563fe8db976054c599704 Content-Type: text/plain; charset=UTF-8 Ilya, I looked at the Semyon's comments in the ticket, and I think I agree with him on all counts. 1. Setting an eviction policy should not be a mechanism to enable the on-heap cache. We already have eviction policies off-heap as well, and they don't enable anything. On top of that, the eviction policy should not be a requirement for the on-heap cache. User should still be able to enable the on-heap cache, even if it grows indefinitely without evictions. We should have a more intuitive flag here. 2. As far as the tests go, they should examine all the tests and adapt them to the new behavior. I think we should have a replica of all off-heap tests to test the scenario with on-heap caches. D. On Tue, Apr 4, 2017 at 8:12 AM, Ilya Lantukh wrote: > Hi Igniters, > > Since review of IGNITE-4535 > implementation caused > some misunderstandings, I'd like to open a discussion here and see if > everyone agrees with the chosen approach or can suggest a better one. > > We are going to re-use existing EvictionPolicy mechanics to decide when > entry is going to be evicted from on-heap cache. If evictionPolicy == null, > we assume that there is no on-heap cache. One of suggested alternatives was > to have a separate boolean parameter that will enable on-heap cache. > > Another questionable decision was to remove tests for memory mode > variations. For example, we had GridCacheContinuousQueryAtomicSelfTest, > GridCacheContinuousQueryAtomicOffheapTieredSelfTest and > GridCacheContinuousQueryAtomicOffheapValuesSelfTest that were testing the > same functionallity for ONHEAP_TIERED, OFFHEAP_TIERED and OFFHEAP_VALUES > modes, respectively. Since those memory modes were removed, only > GridCacheContinuousQueryAtomicSelfTest was left and it now runs in > off-heap > mode without on-heap cache. One of suggestions was to add a new subclass to > this test (and all other tests) that will run the same test case with > on-heap cache enabled. In my opinion, functionallity that is specific for > on-heap cache should be tested in completely separate tests (which we > already have), and there is no need to run generic tests with every > possible configuration. > > What do you think? > > -- > Best regards, > Ilya > --001a114563fe8db976054c599704--