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 A4963200B35 for ; Mon, 20 Jun 2016 14:11:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A38F3160A55; Mon, 20 Jun 2016 12:11:10 +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 F2239160A65 for ; Mon, 20 Jun 2016 14:11:09 +0200 (CEST) Received: (qmail 8726 invoked by uid 500); 20 Jun 2016 12:11:07 -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 8561 invoked by uid 99); 20 Jun 2016 12:11:06 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 12:11:06 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 436382C14F8 for ; Mon, 20 Jun 2016 12:11:05 +0000 (UTC) Date: Mon, 20 Jun 2016 12:11:05 +0000 (UTC) From: "Dmitry Karachentsev (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-3339) get() in explicit READ_COMMITTED transaction on OFFHEAP_TIERED cache copies data from offheap to onheap. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Jun 2016 12:11:10 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Karachentsev updated IGNITE-3339: ---------------------------------------- Description: On OFFHEAP_TIERED TRANSACTIONAL cache: 1. Put entry. 2. Cache size equals 1 and iterator returns one entry. 3. Open PESSIMISTIC READ_COMMITED transaction. 4. get() that value. 5. Commit transaction. 6. Cache size now equals 2 and iterator returns two identical entries. By fast investigation was found that after put() operation value goes to offheap. After get() operation in explicit transaction the same value appears in onheap and offheap iterators. As a result user sees two the same entries. https://github.com/apache/ignite/pull/817 was: Configure cache as OFFHEAP_TIERED . https://github.com/apache/ignite/pull/817 > get() in explicit READ_COMMITTED transaction on OFFHEAP_TIERED cache copies data from offheap to onheap. > -------------------------------------------------------------------------------------------------------- > > Key: IGNITE-3339 > URL: https://issues.apache.org/jira/browse/IGNITE-3339 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: 1.6 > Reporter: Dmitry Karachentsev > Fix For: 1.7 > > > On OFFHEAP_TIERED TRANSACTIONAL cache: > 1. Put entry. > 2. Cache size equals 1 and iterator returns one entry. > 3. Open PESSIMISTIC READ_COMMITED transaction. > 4. get() that value. > 5. Commit transaction. > 6. Cache size now equals 2 and iterator returns two identical entries. > By fast investigation was found that after put() operation value goes to offheap. After get() operation in explicit transaction the same value appears in onheap and offheap iterators. As a result user sees two the same entries. > https://github.com/apache/ignite/pull/817 -- This message was sent by Atlassian JIRA (v6.3.4#6332)