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 2B3D0200CE6 for ; Fri, 15 Sep 2017 10:44:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 29C221609D3; Fri, 15 Sep 2017 08:44:05 +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 6F9181609CF for ; Fri, 15 Sep 2017 10:44:04 +0200 (CEST) Received: (qmail 99913 invoked by uid 500); 15 Sep 2017 08:44:03 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 99897 invoked by uid 99); 15 Sep 2017 08:44:03 -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, 15 Sep 2017 08:44:03 +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 B00E1C42CA for ; Fri, 15 Sep 2017 08:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled 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 y3FANGZIXUUg for ; Fri, 15 Sep 2017 08:44:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C0E085FBDF for ; Fri, 15 Sep 2017 08:44:01 +0000 (UTC) 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 EA798E0F05 for ; Fri, 15 Sep 2017 08:44:00 +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 316C025389 for ; Fri, 15 Sep 2017 08:44:00 +0000 (UTC) Date: Fri, 15 Sep 2017 08:44:00 +0000 (UTC) From: =?utf-8?Q?Micael_Capit=C3=A3o_=28JIRA=29?= To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEPHRA-99) Make "long running" transactions usable with TransactionContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Sep 2017 08:44:05 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-99?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16167= 543#comment-16167543 ]=20 Micael Capit=C3=A3o commented on TEPHRA-99: -------------------------------------- Well the thing here is: when the client first requests a page I'm opening a= new scan, fetch records until a certain limit and then return the records = plus the last row and the tx (the scan is closed). On the next pages the cl= ient provides me the last row and the tx info and I repeat the procedure bu= t starting the scan at the last row (excluded) and injecting the tx info fr= om the first page (that is the part that I'm going to do now). The truth is I don't really want to start a transaction on the pages after = the first one (and on the first page I do have to start a transaction and c= ommit it). I only need the transaction info to go with the scan so the Thep= hra coprocessor can do its job at filtering anything that should not be see= n by the tx I've injected. So in reality there should be no issues at all o= r am I missing something here? > Make "long running" transactions usable with TransactionContext > --------------------------------------------------------------- > > Key: TEPHRA-99 > URL: https://issues.apache.org/jira/browse/TEPHRA-99 > Project: Tephra > Issue Type: Improvement > Components: core > Reporter: Gary Helmling > Assignee: Gary Helmling > > "Long running" transactions (type =3D=3D LONG) are supported by the Tephr= a {{TransactionManager}}, but {{TransactionContext}} does not expose any wa= y for clients to interact with them. I think this will require a couple ch= anges: > * add a {{startLong()}} method to TransactionContext > * add a constructor to TransactionContext that takes an existing {{Transa= ction}} instance. Since long running transactions are often used in map re= duce processing, the process committing the transaction may be different fr= om the process that started the transaction. In this situation, we need a = way to pass the serialized transaction all the way through to the other pro= cess. > Regarding map reduce support, we could use additional utilities or suppor= t in place to make transactions easier to use with map reduce. But this wo= uld at least serve as a first step. -- This message was sent by Atlassian JIRA (v6.4.14#64029)