From issues-return-97738-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Mon Aug 12 08:23:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id BD47C180644 for ; Mon, 12 Aug 2019 10:23:02 +0200 (CEST) Received: (qmail 26829 invoked by uid 500); 12 Aug 2019 08:23:01 -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 26810 invoked by uid 99); 12 Aug 2019 08:23:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2019 08:23:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 32963E2F0C for ; Mon, 12 Aug 2019 08:23:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E438E26680 for ; Mon, 12 Aug 2019 08:23:00 +0000 (UTC) Date: Mon, 12 Aug 2019 08:23:00 +0000 (UTC) From: "Igor Seliverstov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-5714) Implementation of suspend/resume for pessimistic transactions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-5714?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D169= 04961#comment-16904961 ]=20 Igor Seliverstov commented on IGNITE-5714: ------------------------------------------ [~alex_pl], now it looks much better, I have no objections to merge the PR. > Implementation of suspend/resume for pessimistic transactions > ------------------------------------------------------------- > > Key: IGNITE-5714 > URL: https://issues.apache.org/jira/browse/IGNITE-5714 > Project: Ignite > Issue Type: Sub-task > Components: general > Reporter: Alexey Kuznetsov > Assignee: Aleksey Plekhanov > Priority: Major > Labels: iep-34 > Time Spent: 4.5h > Remaining Estimate: 0h > > Support transaction suspend()\resume() operations for pessimistic transac= tions. Resume can be called in another thread. > _+But there is a problem+_: Imagine, we started pessimistic transactio= n in thread T1 and then perform put operation, which leads to sending GridD= istributedLockRequest to another node. Lock request contains thread id of t= he transaction. Then we call suspend, resume in another thread and we also = must send messages to other nodes to change thread id.=20 > It seems complicated task.It=E2=80=99s better to get rid of sending threa= d id to the nodes. > We can use transaction xid on other nodes instead of thread id. Xid is se= nt to nodes in GridDistributedLockRequest#nearXidVer > _+Proposed solution+_ : On remote nodes instead of thread id of near t= ransaction GridDistributedLockRequest#threadId use its xid GridDistributedL= ockRequest#nearXidVer. > Remove usages of near transaction's thread id on remote nodes. -- This message was sent by Atlassian JIRA (v7.6.14#76016)