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 D137E200D5D for ; Wed, 20 Dec 2017 16:39:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CF5BA160C12; Wed, 20 Dec 2017 15:39:51 +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 2157F160C0A for ; Wed, 20 Dec 2017 16:39:50 +0100 (CET) Received: (qmail 6449 invoked by uid 500); 20 Dec 2017 15:39:50 -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 6437 invoked by uid 99); 20 Dec 2017 15:39:49 -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; Wed, 20 Dec 2017 15:39:49 +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 696FEC4886 for ; Wed, 20 Dec 2017 15:39:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.979 X-Spam-Level: * X-Spam-Status: No, score=1.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, 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: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Buw6HeLlB_Kd for ; Wed, 20 Dec 2017 15:39:47 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A9BFA5F1D5 for ; Wed, 20 Dec 2017 15:39:46 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id n2so8459446vkf.4 for ; Wed, 20 Dec 2017 07:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vvkBIGGs5bC/nAksxmvMQV08OYX9TMBL9nQ1wImfpvM=; b=jPT9QiWexC6uT4LTBsrH+7XHba1CC6gtGbYVBEWnLLg0VrgiAdafhu7I09pcyYeghB Q/jqoV3LE5Pp0lqBVWzh3UbCWtcBH4l5vbe7ZY9VbTFCCZkf0oypAdhIU5dOJ+100Pay 4J49mRWIAX5F/S3nLUdSIVq+9KeweNecrQvH0nuvYT8roAk31G7FMRJ2XY/emn5Efklm PHL2McOhGX8AVdltJ9wbmDLJIFjXGZOv6Dk8590Zkc5/zQkCbUGLzWv2P50VIeApzu4/ 1kon8Bt8sjkJE+AvE7pRt86JBfnA6V3cmqNorQUHYODBnwxeXorI2Hr4If4hf7VBU3af koyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vvkBIGGs5bC/nAksxmvMQV08OYX9TMBL9nQ1wImfpvM=; b=bDVJgAmvyT7sg9BdPks7dkqeOP89rsALqHMVzh5mkAJsSyu36mejVGPooIbQEPphV+ dHrvnxWNdQIAiCDEXk+5e94ibxPrOw4EtXbRjXAvzA1N3rQ0nNJzfQQOphodUmc9gKZm 2h+wWtrNWeBpDyi31ve1uY0Du1ZsJJ4sm3NXChhaOL4//vB5V4g14lQd9lUCkdITP0Tc Lo6WgNTmZWOaOODPq/Tjvz2idL54OnuxgIwvxFR3Y88Uz0vxu082JvFNkguo4RJzthMm Rr6QWRaHrL6ttgWwbKR787ogxRZUaGOQRvr9JD3TKw7JqNtwXXH6tTx3MgbTrJt3UuFY 9oVQ== X-Gm-Message-State: AKGB3mKvsYAWrWA/Y7IdCws/cn2iJKOXxxeRtW2RiItgj6pJ4djerT6i uSpmOycIOyDyu/+ahdpxwJCQGK7+N4Hjiyp6ofGcVA== X-Google-Smtp-Source: ACJfBouWYcDQtGRft0WBF8m8GjXvqyecBvesSatAhqvz8tXcDCAfnfivmtmxez6yTSMmItikOjQGamXY1NC6D5Kh4mA= X-Received: by 10.31.98.135 with SMTP id w129mr7151193vkb.77.1513784384866; Wed, 20 Dec 2017 07:39:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.48.218 with HTTP; Wed, 20 Dec 2017 07:39:44 -0800 (PST) In-Reply-To: References: From: Vladimir Ozerov Date: Wed, 20 Dec 2017 18:39:44 +0300 Message-ID: Subject: Re: Transaction classes naming To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c094e6886e6040560c76486" archived-at: Wed, 20 Dec 2017 15:39:52 -0000 --94eb2c094e6886e6040560c76486 Content-Type: text/plain; charset="UTF-8" +1 On Wed, Dec 20, 2017 at 6:18 PM, Alexey Goncharuk < alexey.goncharuk@gmail.com> wrote: > Igniters, > > As I review transaction-related PRs and communicate with other fellow > Igniters, I realized that our transaction classes naming became > inconsistent and almost impossible to explain to a new contributor. A few > examples: > > 1) We have a GridNearTxLocal class, but Near in the name does not > necessarily mean that this transaction has to do with the near cache. It > may or may not, depending on the cache configuration. Near in this case > only stands for _originating_ node transaction. This is also reflected in > many messages, such as Near*Request, where near stands for a message sent > from an originating node to the primary node. > 2) We have GridNearTxRemote and GridDhtTxRemote classes. First, near here > always means near cache, as near remote transaction will only be created > for near-enabled caches. Second, Remote in the class names stands for > backups (affinity backups or temporarily near-reader backups). On the other > hand, requests sent from primary to backups are named Dht*Request. > > All in all, the naming is extremely confusing. For a person who hasn't seen > the evolution of transaction classes over time, it is impossible to infer > or even assume what these classes stand for. > > I would like to kick off a discussion on new transaction classes and > messages naming (especially as we started developing MVCC which most likely > will introduce additional TX classes). > > How about: > OriginatingTx for transaction created on originating node > PrimaryTx for transaction created on primary nodes, but not the originating > node > BackupTx for transaction created on backup nodes > NearTx for transaction created to update near cache > > Thoughts? > --94eb2c094e6886e6040560c76486--