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 2839F200CDF for ; Thu, 17 Aug 2017 08:43:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2181016A5EE; Thu, 17 Aug 2017 06:43:28 +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 3D1E816A5EC for ; Thu, 17 Aug 2017 08:43:27 +0200 (CEST) Received: (qmail 94160 invoked by uid 500); 17 Aug 2017 06:43:26 -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 94148 invoked by uid 99); 17 Aug 2017 06:43:25 -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, 17 Aug 2017 06:43:25 +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 0F547C3E10 for ; Thu, 17 Aug 2017 06:43:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.38 X-Spam-Level: *** X-Spam-Status: No, score=3.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=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 QRQQzYt8JZUQ for ; Thu, 17 Aug 2017 06:43:22 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1A8815F6C1 for ; Thu, 17 Aug 2017 06:43:22 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id d17so25521875lfe.0 for ; Wed, 16 Aug 2017 23:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YOds3kHovwdMziY0QTKClQWZjCMu19A9jIexHxdSAv4=; b=la0zp/7+m8tyM3507S6faJJ0zNUMVVp4Flve4sEcRZmgyIqtB4Wyaf8PCH0Rvv8iAY 4AmotwxbH5ipuRBNCvo/QK1mEKfs7L78pSsTu72+OFy+VUCJJ34YTFpoXgLiYg6k4Ld3 GwcncNaexTJ2coUlMJv48ahjR4Be/kbNzBObK1ko+Blzrzw5yhQR9tkIaSNqqFQyysDL yGkKHvXkb/B9ltjefZJ1Fmll9Rh2OMx3g9yhDCz6K8z/ZfFXt+wpHL/5jBusc5LA7mR3 Rm2QLQaCtN29B1RgtZjvmYz/wETG9PnyftKz07k2Lh9eE7lBJWMwcFzIZeFCWPtTR/Rv ip9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YOds3kHovwdMziY0QTKClQWZjCMu19A9jIexHxdSAv4=; b=DwH2UNeaFvbldUe+TQticiCS19V6kWe/H/RvhiBXa2Ul3xfLuT+91HRJXOQOy45muY PTcBET8RCgVRMRZ1iuP6y0bhzYgC/97wfKgllhNBlfhE9/Jaegi89Ssj0yz7R2Cdcxe7 TOBzy16yqCZ81/DbIAURvRI3NFgJutPBlA4WQfkFlp5DvbAgpKFc48V1FgFF+OU8uM53 ExyQxoZWBelno3ZTauKqQ7ER/O8JEokD6LVq02dYEp/WSfPjx7ssbTMfkhpYoev3AWzk vpQsWJhm8gFd4EAKqOsoZQlqlAEE5Q+aOyex3Tugz2qEG40GZ1M4LJ8D1vlXAfcpBBVy ejfw== X-Gm-Message-State: AHYfb5jiHx7S+Dhgz7EV/g7t4prJxl7lulLd83KEWZxxBUB9okmEUQvz yLcpsF/6B2ds14afpbB8dMeTi7Ce3Q== X-Received: by 10.25.42.216 with SMTP id q85mr1764129lfq.8.1502952201259; Wed, 16 Aug 2017 23:43:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Denis Mekhanikov Date: Thu, 17 Aug 2017 06:43:10 +0000 Message-ID: Subject: Re: Ignite2.1: Page eviction is not compatible with persistence when startup To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c14ad141210f90556ed5401" archived-at: Thu, 17 Aug 2017 06:43:28 -0000 --94eb2c14ad141210f90556ed5401 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable At least documentation should be fixed to correspond to implementation. Currently it says that eviction policy just have no effect when persistence is enabled: https://apacheignite.readme.io/docs/evictions =D1=87=D1=82, 17 =D0=B0=D0=B2=D0=B3. 2017 =D0=B3. =D0=B2 8:12, Dmitriy Setr= akyan : > On Wed, Aug 16, 2017 at 3:39 PM, Denis Magda wrote: > > > Developers, > > > > Let me bring this to your attention. Why do we throw an exception if th= e > > user has both an eviction policy and the Ignite persistence configured? > Why > > don=E2=80=99t we simply ignore the eviction policy printing a warning a= nd proceed > > with the node startup? > > > > Denis, any reason one approach is better than another? > > > > > > =E2=80=94 > > Denis > > > > > Begin forwarded message: > > > > > > From: Denis Mekhanikov > > > Subject: Re: Ignite2.1: Page eviction is not compatible with > persistence > > when startup > > > Date: August 16, 2017 at 1:08:26 AM PDT > > > To: user@ignite.apache.org > > > Reply-To: user@ignite.apache.org > > > > > > Looks like you configured both persistence and eviction policy. These > > are alternative options and cannot be enabled at the same time. > > > > > > =D1=81=D1=80, 16 =D0=B0=D0=B2=D0=B3. 2017 =D0=B3. =D0=B2 5:48, Bob Li= <2789106479@qq.com > 2789106479@qq.com>>: > > > I want to setup the eviction like: > > > > > > > MemoryPolicyConfiguration"> > > > > > > > > > > > > > > > but when it startups, encountered the following: > > > > > > [2017-08-16 10:28:08,950][ERROR][main][IgniteKernal] Exception during > > start > > > processors, node will be stopped and close connections > > > class org.apache.ignite.IgniteCheckedException: Failed to start > > processor: > > > GridProcessorAdapter [] > > > at > > > org.apache.ignite.internal.IgniteKernal.startProcessor( > > IgniteKernal.java:1791) > > > at > > > org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:929) > > > at > > > org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0( > > IgnitionEx.java:1896) > > > at > > > org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start( > > IgnitionEx.java:1648) > > > at > > > org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1076) > > > at > > > org.apache.ignite.internal.IgnitionEx.startConfigurations( > > IgnitionEx.java:994) > > > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx. > > java:880) > > > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx. > > java:779) > > > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx. > > java:649) > > > at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx. > > java:618) > > > at org.apache.ignite.Ignition.start(Ignition.java:347) > > > at > > > org.apache.ignite.startup.cmdline.CommandLineStartup. > > main(CommandLineStartup.java:302) > > > Caused by: class org.apache.ignite.IgniteCheckedException: Page > > eviction is > > > not compatible with persistence: 1G_Region > > > at > > > org.apache.ignite.internal.processors.cache.persistence. > > GridCacheDatabaseSharedManager.checkPolicyEvictionProperties( > > GridCacheDatabaseSharedManager.java:660) > > > at > > > org.apache.ignite.internal.processors.cache.persistence. > > IgniteCacheDatabaseSharedManager.validateConfiguration( > > IgniteCacheDatabaseSharedManager.java:336) > > > at > > > org.apache.ignite.internal.processors.cache.persistence. > > IgniteCacheDatabaseSharedManager.start0(IgniteCacheDatabaseSharedManag > > er.java:109) > > > at > > > org.apache.ignite.internal.processors.cache.persistence. > > GridCacheDatabaseSharedManager.start0(GridCacheDatabaseSharedManager > > .java:358) > > > at > > > org.apache.ignite.internal.processors.cache. > > > GridCacheSharedManagerAdapter.start(GridCacheSharedManagerAdapter.java:61= ) > > > at > > > org.apache.ignite.internal.processors.cache.GridCacheProcessor.start( > > GridCacheProcessor.java:696) > > > at > > > org.apache.ignite.internal.IgniteKernal.startProcessor( > > IgniteKernal.java:1788) > > > > > > From the above, it seemed those codes worked in the file > > > 'GridCacheDatabaseSharedManager': > > > > > > @Override protected void > > > checkPolicyEvictionProperties(MemoryPolicyConfiguration plcCfg, > > > MemoryConfiguration dbCfg) > > > throws IgniteCheckedException { > > > if (plcCfg.getPageEvictionMode() !=3D > > DataPageEvictionMode.DISABLED) > > > throw new IgniteCheckedException("Page eviction is not > > > compatible with persistence: " + plcCfg.getName()); > > > } > > > > > > > > > how to solve it? thanks. > > > > > > > > > > > > -- > > > View this message in context: http://apache-ignite-users. > > 70518.x6.nabble.com/Ignite2-1-Page-eviction-is-not- > > compatible-with-persistence-when-startup-tp16215.html < > > http://apache-ignite-users.70518.x6.nabble.com/Ignite2-1- > > > Page-eviction-is-not-compatible-with-persistence-when-startup-tp16215.htm= l > > > > > > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > > > > > --94eb2c14ad141210f90556ed5401--