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 D02A3200C3A for ; Fri, 31 Mar 2017 15:35:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CEB6C160B8C; Fri, 31 Mar 2017 13:35:14 +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 23589160B80 for ; Fri, 31 Mar 2017 15:35:13 +0200 (CEST) Received: (qmail 67168 invoked by uid 500); 31 Mar 2017 13:35:13 -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 67154 invoked by uid 99); 31 Mar 2017 13:35:13 -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; Fri, 31 Mar 2017 13:35:13 +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 8A191C142C for ; Fri, 31 Mar 2017 13:35:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.897 X-Spam-Level: X-Spam-Status: No, score=-0.897 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_H2=-2.796, SPF_PASS=-0.001] 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 Vg60LaZaFxZ9 for ; Fri, 31 Mar 2017 13:35:11 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 74F295F177 for ; Fri, 31 Mar 2017 13:35:11 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id k6so101246954wre.2 for ; Fri, 31 Mar 2017 06:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=F9ohXMpWKinX7J/Uy0QDfO0Ia3aCu2FQtfpdh/9SKTI=; b=dbQdv0U+6+vksBlFsM6F4KZelesA1pRmgqHeq+x3XU/09hS3KmZOUdl4M7rZ9odx2l ZiSE7aYvDnX5D18m1/h9QYe/lhxOvk3sfJU9UvkNAW8/RI8uJbS5kLwksMbEd3SwhbWk 8J0oRP4oDJaKBpxU5T9v9TWJMt2ga/L/I0iJwZ8WpFDxqrIlIKMxyOqE80k+0/sRTLIE NAGSI3/lZVRDwsGqnfYjXN+zWhAGgxiH3GDC97mvyNnfWJGIhvjPDkZ3wf/L+Yf+9E+H 9FREx9RjR+TXAFAq/7FIOEWA6Pk8tG8PadjzyZojKKa/tmTeM/u9Ux9Ud5H8k0KXA/ME 9c6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=F9ohXMpWKinX7J/Uy0QDfO0Ia3aCu2FQtfpdh/9SKTI=; b=QZIV2T3usTq/x750tu4UrN1LKyHgr/ZNn9dvsqI+bXeZwskbQSNYt7qnaNEBGsjtN1 Z1/8IKwZib8yZVISHsvFs4mIiwZvfHckrDGi/pO6QOxlMweJWmcY0xG7GcdXFtPKHsja 8gIoxEqk3G53nfCr31LmwriUr8U8yEpFH9LQeCd4GToSFxGDb3vLcaelfAL3npWKp+6d 4TTBrgxH4aVTDctxdGaKIA/BiVXmOXAUqHwomeSdsL7izlYHbLdgw70ZJSaJK7jONeAx wI8A0Jvxi/RLyunazeKHUUebr/YY4MFQhTfyLYYuV4cDZCClt3/24eWfcqH1+CA5043X 5CGQ== X-Gm-Message-State: AFeK/H2UThjCO57Sj1nkCbCupOK2NJb3ANq5FcFUbuFuNaS66GAOg03Y0viy8Pv/YcFfFivuaeHQdcBMS1SCYQ== X-Received: by 10.28.156.140 with SMTP id f134mr2866166wme.40.1490967310310; Fri, 31 Mar 2017 06:35:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.86.87 with HTTP; Fri, 31 Mar 2017 06:34:49 -0700 (PDT) From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KDRj9Cx0L7Qsg==?= Date: Fri, 31 Mar 2017 16:34:49 +0300 Message-ID: Subject: IGNITE-4188, thoughts about realisation To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114b3730e726ac054c06e00e archived-at: Fri, 31 Mar 2017 13:35:15 -0000 --001a114b3730e726ac054c06e00e Content-Type: text/plain; charset=UTF-8 Hello, community. try (Transaction tx = ignite.transactions().txStart()) { c.put(1, 1); tx.savepoint("mysavepoint"); c.put(2, 2); tx.rollbackToSavepoint("mysavepoint"); c.put(3, 3); tx.commit(); } I want to make it in such way: When user calls tx.savepoint(""), Transaction delegate call to IgniteInternalTx, which delegate it to its IgniteTxState. IgniteTxState implementation will contain stack of savepoints, where Savepoint is class containing snapshot of cache entries and any important additional information. What do you think? --001a114b3730e726ac054c06e00e--