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 287E7200CBA for ; Mon, 3 Jul 2017 15:56:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 26D8F160BEC; Mon, 3 Jul 2017 13:56:42 +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 6BA6E160BE4 for ; Mon, 3 Jul 2017 15:56:41 +0200 (CEST) Received: (qmail 43774 invoked by uid 500); 3 Jul 2017 13:56:40 -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 43762 invoked by uid 99); 3 Jul 2017 13:56:40 -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; Mon, 03 Jul 2017 13:56:40 +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 860E8C14B7 for ; Mon, 3 Jul 2017 13:56:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id M0PISSk3qI-k for ; Mon, 3 Jul 2017 13:56:35 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A49955FCB5 for ; Mon, 3 Jul 2017 13:56:35 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id i127so109586201wma.0 for ; Mon, 03 Jul 2017 06:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=epi8vBAp/Hbhfiuihe4KLmikpov/wJTU0rwYtOov0ag=; b=vO5kFqtjHdvIoGQoiIXN1xAAA3jMlgnaJoRinikFN+I37OSI0g7sunwroOSCNplfei A/3xWGXstLMgpIr5I910A1FW4oylF64FReDQxd+iML4YpAqPBE4bKmPFV3bYakdkWQuD AveDl7TYyTT2kLhjvfO1rQrdiZ/UvkNfcQ9xtMMTWr9k9hjJDY94ojjg9ZPqD8mUMCfz Y2JuAlD4AfS/WN6cr/G3G3L+QiHyOEXn1xl9A1YL8GytqClGtbcaoo+GA9TWrk8sSFW2 PGUvOaSTuAENJ+54ZCFZHRXYyNCgguCJG2vH+vOotC2TmS+LJSARX8e4emzwywFW3Lh8 /8tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=epi8vBAp/Hbhfiuihe4KLmikpov/wJTU0rwYtOov0ag=; b=OtR8rhnrMfqFByBaoX3AaXmKLY+TFzIdxSqx/fQcqdC7d5uBWC/8lWXieQqt51sJfi Bb0FCpEatONn8/ufcRKMw3JzqJfKbhf/9Prb8ZaAqKdW6TarlVG8LKh//2im2iE/MK+O 1k0Lw7F148Wt1bQJ5ecX52GRD76CFb8R9bLL/B4lwaYZCbZo4Q6BPu5yRlBvF7D0Y9G1 Swarkz+Th+g0ugmH206zC1thhze5NWq7cIquq4CDOvgIZiyzeZpuhXZBf08B7Hr5EyDB 7LcLiA/AeMAamEvc7OgKVvAhWi+gQ1L6OBfFeVsTyTH1/ZtBwidB2a51XbnPM3ENC6b7 jL3g== X-Gm-Message-State: AIVw111E1YCDtKUIb27A+04vHbuGbNT/bnkznRnVPG/Cd3CZ4RTGyklQ Hg4XSKEshLL3lClBxzqad3wx3qlVsw== X-Received: by 10.28.133.3 with SMTP id h3mr15563232wmd.77.1499090195203; Mon, 03 Jul 2017 06:56:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ALEKSEY KUZNETSOV Date: Mon, 03 Jul 2017 13:56:24 +0000 Message-ID: Subject: Re: Support for starting transaction in another thread IGNITE-4887 To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="001a11442c2a92698d05536a224d" archived-at: Mon, 03 Jul 2017 13:56:42 -0000 --001a11442c2a92698d05536a224d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It is a global scope) Now multiple threads can commit transaction and it will lead to exception. It doesn't refer to my ticket only, but for a current transaction implementation. =D0=BF=D0=BD, 3 =D0=B8=D1=8E=D0=BB. 2017 =D0=B3. =D0=B2 16:53, Yakov Zhdano= v : > What separate ticket do you mean here? I think this is the scope of the > original one. > > --Yakov > > 2017-07-03 16:39 GMT+03:00 ALEKSEY KUZNETSOV : > > > I've go a test, which illustrates transaction commit fail when multiple > > threads try to commit. As i said, it happenes in mvcc stage. > > > > So we should create a special lock mechanism for all transaction method= s. > > In a separate ticket. > > > > =D0=BF=D0=BD, 3 =D0=B8=D1=8E=D0=BB. 2017 =D0=B3. =D0=B2 16:26, Yakov Zh= danov : > > > >> >Consider thread *Th1* started transaction *Tx1*, done some actions, a= nd > >> is > >> >calling commit (GridNearTxLocal#commit -> commitNearTxLocalAsync). An= d > >> >concurrently thread *Th2 *is calling the same commit on* Tx1*. > >> > >> Alexey, this looks weird to me. IMO, if we talk about proper > >> implementation > >> you should detect all cases of illegal access (e.g. commit from thread > not > >> owning the transaction). > >> > >> --Yakov > >> > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > > > --=20 *Best Regards,* *Kuznetsov Aleksey* --001a11442c2a92698d05536a224d--