Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BBAB188FE for ; Wed, 17 Jun 2015 04:34:38 +0000 (UTC) Received: (qmail 32507 invoked by uid 500); 17 Jun 2015 04:34:38 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 32473 invoked by uid 500); 17 Jun 2015 04:34:38 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 32461 invoked by uid 99); 17 Jun 2015 04:34:37 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 04:34:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 58A64CE55A for ; Wed, 17 Jun 2015 04:34:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Lz6qRGSykrSW for ; Wed, 17 Jun 2015 04:34:36 +0000 (UTC) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E7AF424CEA for ; Wed, 17 Jun 2015 04:34:35 +0000 (UTC) Received: by lbbwc1 with SMTP id wc1so23476846lbb.2 for ; Tue, 16 Jun 2015 21:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=dco/DX+4IgEl1di+yBwBd55eIuvSY+0D53lO0BN7c8k=; b=uxE6ALRIacL3Ar9NsfLGbzrSTQzdMSRX76aUKWnuW4M3LTQAqInMRzn5sHGE2oitdS EKm2vnQDmYOuzWs0+yj5+elHT1mWS6sPMp7ynrQWbD7F4Z7ODy9rIRx8nfKZJ78z+bEv nGPNsheLSgzJk6rTZ0ID8xtoMV8LjtrmQ+qaR4cYHAljqt1TLqBL+Hu5NAdlsM4XK3z6 1hEhkhy1+W3r1JAQepDKkz7lqQowKbRU6OCY/ozHl8rAkSx+MnM4ePbDaGbqhWX9Lyzg uuipNyh/Flxz7n9WMCuZ1f1/oLvDAKblBk+Rj6P4saePA2bvH9vL1I9bgId1rNIGkLaZ gBxg== X-Received: by 10.112.137.1 with SMTP id qe1mr5698800lbb.22.1434515669342; Tue, 16 Jun 2015 21:34:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.255.36 with HTTP; Tue, 16 Jun 2015 21:33:49 -0700 (PDT) From: Ognen Duzlevski Date: Tue, 16 Jun 2015 23:33:49 -0500 Message-ID: Subject: close() method on cache revisited To: dev Content-Type: multipart/alternative; boundary=089e01182daae55e770518af3438 --089e01182daae55e770518af3438 Content-Type: text/plain; charset=UTF-8 Has the close() method on caches been changed at all? Last I know was that invoking close() on a cache destroys it completely - which I do not think is the intention of this method, esp. in a distributed setting. Has that been clarified and a decision made? I noticed that the Ignite docs now state clearly that close() destroys a cache but in my opinion that is an issue.... >From the jsr107 for close(): "Closing a Cache does not necessarily destroy the contents of a Cache. It simply signals to the owning CacheManager that the Cache is no longer required by the application and that future uses of a specific Cache instance should not be permitted. Depending on the implementation and Cache topology, e.g., a storage backed or distributed caches, the contents of a closed Cache may still be available and accessible by other applications or in fact via the Cache Manager that previously owned the Cache if an application calls getCache at some point in the future." There is also a specific destroyCache() method in the spec which, I think, does what its name implies. I would say we need to make close() non-destructive and different from destroyCache(). Thanks :-) Ognen --089e01182daae55e770518af3438--