Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A297518D49 for ; Wed, 27 May 2015 15:07:42 +0000 (UTC) Received: (qmail 85738 invoked by uid 500); 27 May 2015 15:07:42 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 85708 invoked by uid 500); 27 May 2015 15:07:42 -0000 Mailing-List: contact commits-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 commits@ignite.incubator.apache.org Received: (qmail 85682 invoked by uid 99); 27 May 2015 15:07:42 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 15:07:42 +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 06FEC1A3483 for ; Wed, 27 May 2015 15:07:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.229 X-Spam-Level: X-Spam-Status: No, score=-3.229 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id R73f5WU71umF for ; Wed, 27 May 2015 15:07:38 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 078C424C07 for ; Wed, 27 May 2015 15:07:35 +0000 (UTC) Received: (qmail 85316 invoked by uid 99); 27 May 2015 15:07:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 15:07:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D26B7E0513; Wed, 27 May 2015 15:07:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Wed, 27 May 2015 15:07:42 -0000 Message-Id: <7ec7fea5dab54d6d84ea402e9bbaa1ae@git.apache.org> In-Reply-To: <63d27e8b0b7f4cf39940283df342d417@git.apache.org> References: <63d27e8b0b7f4cf39940283df342d417@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/28] incubator-ignite git commit: ignite-930 - log ignite-930 - log Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6aa16b85 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6aa16b85 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6aa16b85 Branch: refs/heads/ignite-709_2 Commit: 6aa16b850f6f2a6179a264c0931df84c895f12dc Parents: 1c8d7c9 Author: S.Vladykin Authored: Fri May 22 08:56:00 2015 +0300 Committer: S.Vladykin Committed: Fri May 22 08:56:00 2015 +0300 ---------------------------------------------------------------------- .../cache/distributed/GridDistributedTxRemoteAdapter.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6aa16b85/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java index 3215138..ad9b21d 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java @@ -651,15 +651,17 @@ public class GridDistributedTxRemoteAdapter extends IgniteTxAdapter } } catch (Throwable ex) { - uncommit(); - - state(UNKNOWN); - // In case of error, we still make the best effort to commit, // as there is no way to rollback at this point. err = new IgniteTxHeuristicCheckedException("Commit produced a runtime exception " + "(all transaction entries will be invalidated): " + CU.txString(this), ex); + U.error(log, "Commit failed.", err); + + uncommit(); + + state(UNKNOWN); + if (ex instanceof Error) throw (Error)ex; }