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 647DE200B43 for ; Tue, 19 Jul 2016 10:04:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 63041160A89; Tue, 19 Jul 2016 08:04:42 +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 ACF7E160A76 for ; Tue, 19 Jul 2016 10:04:41 +0200 (CEST) Received: (qmail 56294 invoked by uid 500); 19 Jul 2016 08:04:40 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 56284 invoked by uid 99); 19 Jul 2016 08:04:40 -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; Tue, 19 Jul 2016 08:04:40 +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 40CDC1A027F for ; Tue, 19 Jul 2016 08:04:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.173 X-Spam-Level: ** X-Spam-Status: No, score=2.173 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_SOFTFAIL=0.972] 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 DQADnbtL43sq for ; Tue, 19 Jul 2016 08:04:38 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A81B65F472 for ; Tue, 19 Jul 2016 08:04:37 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 419802CC1FAA for ; Tue, 19 Jul 2016 00:41:20 -0700 (PDT) Date: Tue, 19 Jul 2016 00:47:30 -0700 (PDT) From: zshamrock To: user@ignite.apache.org Message-ID: <1468914450909-6372.post@n6.nabble.com> In-Reply-To: <1468870864164-6355.post@n6.nabble.com> References: <1468767786314-6334.post@n6.nabble.com> <1468827122113-6340.post@n6.nabble.com> <1468859999170-6351.post@n6.nabble.com> <1468870864164-6355.post@n6.nabble.com> Subject: Re: Removing or overwriting cache value, but still able to get it from the cache MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 19 Jul 2016 08:04:42 -0000 Thank you. Coming with a reproducible example is a challenge, and will take, but I need this issue solved, so will try to come with something you can reproduce locally. Regards /"In you particular case, I would expect the removeAll() removes the provided keys from all caches and from the persistence store, so the behavior you're describing is weird. The reproducible example would be really useful. "/, the item is removed from the data store not because of cache.removeAll() (as I only configured readThrough, and deleteAll() and delete() methods of the CacheStoreAdapter simply throw UnsupportedOperationException), but because on the new session start there is a logic which updates the old values with the new one in the database. So, if the cache becomes empty, but calling removeAll() the next call to get() should retrieve the up to date latest changes, which is not happening. Again, will try to come with some reproducible example. Also I am testing the very same application without using a near-cache to see if it makes any difference. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Removing-or-overwriting-cache-value-but-still-able-to-get-it-from-the-cache-tp6334p6372.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.