From dev-return-36210-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Jul 5 06:21:13 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 92C69180608 for ; Thu, 5 Jul 2018 06:21:12 +0200 (CEST) Received: (qmail 60663 invoked by uid 500); 5 Jul 2018 04:21:11 -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 60642 invoked by uid 99); 5 Jul 2018 04:21:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2018 04:21:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 717B31A1FDF for ; Thu, 5 Jul 2018 04:21:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.485 X-Spam-Level: *** X-Spam-Status: No, score=3.485 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0EsSKCq9jj0K for ; Thu, 5 Jul 2018 04:21:09 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [162.253.133.72]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E9D075F430 for ; Thu, 5 Jul 2018 04:21:07 +0000 (UTC) Received: from mben.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id 51D8A1C204CE6 for ; Wed, 4 Jul 2018 21:21:06 -0700 (MST) Date: Wed, 4 Jul 2018 21:21:06 -0700 (MST) From: "kcheng.mvp" To: dev@ignite.apache.org Message-ID: <1530764466332-0.post@n4.nabble.com> Subject: Why GridCacheEvictionManager always use cfg.getEvictionPolicy/cfg.getEvictionPolicyFactory even there is NearEvictionPolicy configured? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit As the method *org.apache.ignite.internal.processors.cache.GridCacheAdapter#isNear* always returns false, it will make the near cache eviction policy don't take effect. Here is the code from *org.apache.ignite.internal.processors.cache.GridCacheEvictionManager#start0*. is this an expected behavior ? ========================== CacheConfiguration cfg = cctx.config(); if (cctx.isNear()) { plc = (cfg.getNearConfiguration().getNearEvictionPolicyFactory() != null) ? (EvictionPolicy)cfg.getNearConfiguration().getNearEvictionPolicyFactory().create() : cfg.getNearConfiguration().getNearEvictionPolicy(); } else if (cfg.getEvictionPolicyFactory() != null) plc = (EvictionPolicy)cfg.getEvictionPolicyFactory().create(); else plc = cfg.getEvictionPolicy(); plcEnabled = plc != null; filter = cfg.getEvictionFilter(); ========================== -- Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/