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 905F8200B26 for ; Mon, 27 Jun 2016 15:45:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8EF7F160A5B; Mon, 27 Jun 2016 13:45:54 +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 DA6A1160A63 for ; Mon, 27 Jun 2016 15:45:53 +0200 (CEST) Received: (qmail 29582 invoked by uid 500); 27 Jun 2016 13:45:52 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 29505 invoked by uid 99); 27 Jun 2016 13:45:52 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2016 13:45:52 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3D6962C1F6E for ; Mon, 27 Jun 2016 13:45:52 +0000 (UTC) Date: Mon, 27 Jun 2016 13:45:52 +0000 (UTC) From: "Anton Vinogradov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-1525) Return value for cache operation can be lost with onePhaseCommit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Jun 2016 13:45:54 -0000 [ https://issues.apache.org/jira/browse/IGNITE-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351011#comment-15351011 ] Anton Vinogradov commented on IGNITE-1525: ------------------------------------------ Sounds good, but I have another idea in case of One-Phase-Commit, to send {{GridNearTxPreparePreliminaryResponse}} (new message) from Primary to Client after sending {{GridDhtTxPrepareRequest}} to Backup. {{GridNearTxPreparePreliminaryResponse}} in this case should contain {{GridCacheReturn}}. This message delivers execution result, but not finishes Tx future. In this case {{GridDhtTxPrepareResponse}} will deliver empty {{GridCacheReturn}}. So, steps: 1) Client sends {{GridNearTxPrepareRequest}} to Primary. 2) Primary sends {{GridDhtTxPrepareRequest}} to Backup. 3) Primary sends {{GridNearTxPreparePreliminaryResponse}} to Client. (new) 4) Backup sends {{GridDhtTxPrepareResponse}} to Primary. 5) Primary sends {{GridNearTxPrepareResponse}} to Client. (changed, {{GridNearTxPrepareResponse}} contains no {{GridCacheReturn}}) P.s. {{GridDhtTxFinishRequest}} and {{GridDhtTxFinishResponse}} still used to fix Primary failed case. This case also required new message (Instead of [Backup receives an asynchronous ACK from originating node when TX is done]) but requires no additional memory at Backup. Thoughts? > Return value for cache operation can be lost with onePhaseCommit > ---------------------------------------------------------------- > > Key: IGNITE-1525 > URL: https://issues.apache.org/jira/browse/IGNITE-1525 > Project: Ignite > Issue Type: Sub-task > Components: cache > Affects Versions: ignite-1.4 > Reporter: Semen Boikov > Assignee: Anton Vinogradov > Priority: Blocker > Fix For: 1.7 > > > Looks like with {{onePhaseCommit}} return value for cache operation can be lost if primary node fails, {{GridNearTxPrepareResponse}} with return value is not received, but transaction executes 'check backup' step and finishes without error. > Reproduces in {{IgniteCachePutRetryTransactionalSelfTest.testInvoke}}, also added one more test to check return value {{IgniteCachePutRetryTransactionalSelfTest.testGetAndPut}}. > Please unmute tests on TC when fixed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)