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 6D6EE18A42 for ; Mon, 8 Feb 2016 18:23:40 +0000 (UTC) Received: (qmail 35472 invoked by uid 500); 8 Feb 2016 18:23:40 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 35430 invoked by uid 500); 8 Feb 2016 18:23:40 -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 35250 invoked by uid 99); 8 Feb 2016 18:23:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2016 18:23:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 008FB2C1F68 for ; Mon, 8 Feb 2016 18:23:40 +0000 (UTC) Date: Mon, 8 Feb 2016 18:23:40 +0000 (UTC) From: "Artem Shutak (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-2590) IgniteCache.remove() returns false for LOCAL OFFHEAP_TIERED cache inside OPTIMISTIC REPEATABLE_READ transaction. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Artem Shutak created IGNITE-2590: ------------------------------------ Summary: IgniteCache.remove() returns false for LOCAL OFFHEAP_TIERED cache inside OPTIMISTIC REPEATABLE_READ transaction. Key: IGNITE-2590 URL: https://issues.apache.org/jira/browse/IGNITE-2590 Project: Ignite Issue Type: Bug Affects Versions: 1.5.0.final Reporter: Artem Shutak IgniteCache.remove() returns {{false}} for LOCAL OFFHEAP_TIERED cache inside OPTIMISTIC REPEATABLE_READ transaction. But {{cache.get()}} before and after {{remove}} retuns right values. {code} public static void main(String[] args) { try(Ignite ignite = Ignition.start(new IgniteConfiguration())) { CacheConfiguration cfg = new CacheConfiguration() .setName("myCache") .setCacheMode(LOCAL) .setAtomicityMode(TRANSACTIONAL) .setMemoryMode(OFFHEAP_TIERED) ; IgniteCache cache = ignite.getOrCreateCache(cfg); final String key = "key1"; TransactionConcurrency concurrency = OPTIMISTIC; TransactionIsolation isolation = REPEATABLE_READ; try (Transaction tx = ignite.transactions().txStart(concurrency, isolation)) { cache.put(key, 1); tx.commit(); } try (Transaction tx = ignite.transactions().txStart(concurrency, isolation)) { Object val = cache.get(key); // Returns 1. System.out.println("Value: " + val); tx.commit(); } try (Transaction tx = ignite.transactions().txStart(concurrency, isolation)) { boolean remove = cache.remove(key); System.out.println("Removed: " + remove); tx.commit(); } try (Transaction tx = ignite.transactions().txStart(concurrency, isolation)) { Object val = cache.get(key); // Returns null. System.out.println("Value: " + val); tx.commit(); } } } {code} It's corner case. For any other MEMORY_MODE it works. For any other concurrency or isolation levels it works. It also works if execute {{cache.get()}} before remove inside transaction. -- This message was sent by Atlassian JIRA (v6.3.4#6332)