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 D5BCD200CC2 for ; Wed, 5 Jul 2017 22:32:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D3E4316461C; Wed, 5 Jul 2017 20:32:00 +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 25F8D16461A for ; Wed, 5 Jul 2017 22:31:59 +0200 (CEST) Received: (qmail 99475 invoked by uid 500); 5 Jul 2017 20:31:59 -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 99465 invoked by uid 99); 5 Jul 2017 20:31:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 20:31:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BE5D1C047C for ; Wed, 5 Jul 2017 20:31:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.174 X-Spam-Level: ** X-Spam-Status: No, score=2.174 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, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id a6eg_kOzPoB8 for ; Wed, 5 Jul 2017 20:31:57 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 992125FB96 for ; Wed, 5 Jul 2017 20:31:57 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id F20B750325146 for ; Wed, 5 Jul 2017 13:31:56 -0700 (MST) Date: Wed, 5 Jul 2017 13:31:56 -0700 (MST) From: vkulichenko To: user@ignite.apache.org Message-ID: <1499286716982-14347.post@n6.nabble.com> In-Reply-To: <1499158119109-14308.post@n6.nabble.com> References: <1498827962798-14179.post@n6.nabble.com> <1498846287176-14185.post@n6.nabble.com> <1499091350952-14272.post@n6.nabble.com> <1499118833664-14289.post@n6.nabble.com> <1499158119109-14308.post@n6.nabble.com> Subject: Re: NodeFilter for cache and GridDhtPartitionsExchangeFuture (Failed to wait for partition release future) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 05 Jul 2017 20:32:01 -0000 Hi Vladimir, Vladimir wrote > Node B must know wheter the cache is already created. If not it must not > start to avoid such runtime problems. That's why the cache is acquired at > the initialization. That looks like reasonable and comfortable way. What is the exact scenario when cache is not available? If this means absence of node A, then you can lose after initialization of B, so I believe you have the issue anyway. It all boils down to proper API use and exception handling. I would recommend to use Ignite#getOrCreateCache method and handle exceptions that can be thrown by cache operations (for example, if there are no server nodes left). In addition, it sounds like node B can be a client which eliminates a requirement to have a node filter. Vladimir wrote > 1) Why does node B acquire that cache store bean? This node does not hold, > service and create cache due to the node filter. Note that this node > doesn't even have the cache config. Node B is supposed to seldom use the > cache as a remote source without working directly with the database. I was > forced to create properly named datasource bean only to satisfy the > requirement which actually relates to other node (Node A)! Cache store initialized on all nodes including clients. In current implementation this is actually required only for transactional caches, but all caches are still processed in the same way for consistency. So this is correct behavior. Vladimir wrote > 2) Why no problem is met when Node B matches the node filter? This sounds weird, I think there is some other factor that we're missing. Can you create a simple GitHub project that reproduces this behavior and share it with us? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/NodeFilter-for-cache-and-GridDhtPartitionsExchangeFuture-Failed-to-wait-for-partition-release-future-tp14179p14347.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.