Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 177AD18E7A for ; Thu, 29 Oct 2015 18:11:28 +0000 (UTC) Received: (qmail 22600 invoked by uid 500); 29 Oct 2015 18:11:28 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 22563 invoked by uid 500); 29 Oct 2015 18:11:28 -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 22540 invoked by uid 99); 29 Oct 2015 18:11:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 18:11:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C6F712C1F5A for ; Thu, 29 Oct 2015 18:11:27 +0000 (UTC) Date: Thu, 29 Oct 2015 18:11:27 +0000 (UTC) From: "Andrey Gura (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-1380) Random eviction policy for near cache works incorrectly 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-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14980935#comment-14980935 ] Andrey Gura commented on IGNITE-1380: ------------------------------------- There ar two problems in case of near cache: # {{GridNearCacheAdapter.randomEntry()}} method returns {{GridDhtAtomicCacheEntry}} instance instead of {{GridNearCacheEntry}}. # {{RandomEvictionPolicy}} always use {{IgniteCache.localSize(CachePeekMode.ONHEAP)}} call for size calculation. PR cretaed: https://github.com/apache/ignite/pull/185 Waiting for TC. > Random eviction policy for near cache works incorrectly > ------------------------------------------------------- > > Key: IGNITE-1380 > URL: https://issues.apache.org/jira/browse/IGNITE-1380 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: ignite-1.4 > Reporter: Pavel Konstantinov > Assignee: Andrey Gura > Fix For: 1.5 > > > Start two server nodes with cache with near cache with configuration below (node with load generation and one more data node). > Put 2000 keys (from 1 to 2000), read 200 key (from 1 to 200) using first node. > {code} > > > > > > > > > > > > > > > {code} > Near cache contains more keys then I set in configuration (maxSize=100). > Others eviction policies are works correctly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)