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 7967E200B58 for ; Wed, 13 Jul 2016 02:22:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 77FF6160A56; Wed, 13 Jul 2016 00:22:22 +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 C465A160A87 for ; Wed, 13 Jul 2016 02:22:21 +0200 (CEST) Received: (qmail 43047 invoked by uid 500); 13 Jul 2016 00:22:20 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 42779 invoked by uid 99); 13 Jul 2016 00:22:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2016 00:22:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A5FBA2C02AB for ; Wed, 13 Jul 2016 00:22:20 +0000 (UTC) Date: Wed, 13 Jul 2016 00:22:20 +0000 (UTC) From: "Alexey Goncharuk (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-3471) Do not send previous value to client node for invoke() when possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 13 Jul 2016 00:22:22 -0000 Alexey Goncharuk created IGNITE-3471: ---------------------------------------- Summary: Do not send previous value to client node for invoke() when possible Key: IGNITE-3471 URL: https://issues.apache.org/jira/browse/IGNITE-3471 Project: Ignite Issue Type: Task Components: cache Affects Versions: 1.4 Reporter: Alexey Goncharuk Currently for invoke() or invokeAll() methods we send previous cache value to near node and apply EntryProcessor locally to get a return value. This can induce a significant overhead when cache value is much larger than entry processor result. For many cases this can be avoided, e.g. {code} try (tx = txStart()) { cache.invoke(key, EP); // No need to send previous value to client in this case. tx.commit(); } {code} Note that we need to add additional handling of such a case: {code} try (tx = txStart()) { cache.invoke(key, EP); // No need to send previous value to client in this case. cache.get(key); // This should actually get the current cache value from primary node and apply an entry processor locally to get the updated value. tx.commit(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)