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 B0CE2200D28 for ; Mon, 23 Oct 2017 14:35:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AFCDA160BF0; Mon, 23 Oct 2017 12:35:41 +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 086711609CE for ; Mon, 23 Oct 2017 14:35:40 +0200 (CEST) Received: (qmail 78035 invoked by uid 500); 23 Oct 2017 12:35: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 78012 invoked by uid 99); 23 Oct 2017 12:35:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2017 12:35:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 22951C5648 for ; Mon, 23 Oct 2017 12:35:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.389 X-Spam-Level: ** X-Spam-Status: No, score=2.389 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id epARtmID0hbB for ; Mon, 23 Oct 2017 12:35:38 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DDC765FC1C for ; Mon, 23 Oct 2017 12:35:37 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id r129so19938235lff.8 for ; Mon, 23 Oct 2017 05:35:37 -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=iogYL+br6h03n7cLwC86LuA84tPmHN6aJwFil4jdQwo=; b=XsIAwbmLb6IBART/ATI6sczyM97ztHCaGl4ZSkIg6pbKLkGobHIU//0xW8TLmR4MV8 EBqRacwuHcI9ffB8Jq1U8IILxgQz6foQ9v7y0NG+VZroi06G9BEMqWBXdbIiNLHNYg6r Wrl0PG5936E/KZ3ApredymLfn2IWpHaOhTJKWSaLcrKFBBmjdlkkobOnW5vPue6Pg/w7 z8UCFVNrGLMqJcpVPoSwBsMz3yQdh5GZl6sFmg6vmYcforl2Tw8Us/V6H46TOBVELwmq SIPzdFIdIWBTGOQBQiBjwKI25F933vS3Obq8+IW+BjfHwYefFZvS7/SSbxNIRJp9IyP4 56jQ== 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=iogYL+br6h03n7cLwC86LuA84tPmHN6aJwFil4jdQwo=; b=sLO0gdLdZIK3U5Oo29zO4X0I9H5+R1dVPxvI4LES7gTgj6UwbxY1HE542NTNcbsIkC IT2feSSM1wOK3kgmfADT0oxzIZFhsAW7gn/+BBuFY/lkYSJqXga88kcHlfkM33TA809n Qasbp+ntfsawZQjo/T786GIs2ry4IdcJ28RDVzOj7wuAdmGorX2zevgc6IVckB0jOKs3 ATxooXaNQCtp9lfvi9GBfvBHT9NVSLj5oLWkxYt/KrIHIdLaGf9xNrqEWMpxpV3dR1d8 iUkGBqoPIB93jXzPyf1p6LP4JidmxQxxaM1Fl4fKwiulThl5xXbrB4GrLJx/jnZCoN+8 pVcQ== X-Gm-Message-State: AMCzsaW2eNfGO4GUNeCeV+8pPKvkpfevbAjpH/xWsCNb3zkANe08LYTd ctxiQ9xrjaEwppDASWE2oK5N4J41nKStm/Ra7aqpkw== X-Google-Smtp-Source: ABhQp+SebOo4/uFuVmsvYsmuMw4pUJQTQrTHa1SL/GUd6NQJjWECAPsTqbwixcTFfR3wJkU4BbUmyj05i4FXMHhdXC4= X-Received: by 10.25.142.1 with SMTP id q1mr4416146lfd.7.1508762136396; Mon, 23 Oct 2017 05:35:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ALEKSEY KUZNETSOV Date: Mon, 23 Oct 2017 12:35:25 +0000 Message-ID: Subject: Re: Context switching for pessimistic transactions To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="f403045f50c430c964055c360f5d" archived-at: Mon, 23 Oct 2017 12:35:41 -0000 --f403045f50c430c964055c360f5d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Igntrs! I would like to implement suspend\resume methods of a pessimistic transaction as following: if transaction holds lock on a key and suspend method has been called no keys would be unlocked. Therefore, if transaction holds lock on a key and suspend method has been called, topology changing (e.g. start new node in the same thread) would wait transaction to be resumed and finished. Do you think it=E2=80=99s an appropriate behavior? =D0=BF=D1=82, 13 =D0=BE=D0=BA=D1=82. 2017 =D0=B3. =D0=B2 5:06, Dmitriy Setr= akyan : > On Wed, Oct 11, 2017 at 9:00 AM, ALEKSEY KUZNETSOV < > alkuznetsov.sb@gmail.com > > wrote: > > > Hi, Igntrs! > > > > For suspend\resume operations in pessimistic mode we want to write the > same > > tests as for optimistic mode. > > > > What additional tests should we create for the task? > > > Alexey, I think you should ask the reviewer in the ticket to pay attentio= n > to the tests and perhaps suggest some new ones. Without an actual review = it > would be impossible to tell which tests need to be added. > --=20 *Best Regards,* *Kuznetsov Aleksey* --f403045f50c430c964055c360f5d--