From issues-return-5806-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Apr 9 20:12:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E457D180763 for ; Tue, 9 Apr 2019 22:12:01 +0200 (CEST) Received: (qmail 35308 invoked by uid 500); 9 Apr 2019 19:52:23 -0000 Mailing-List: contact issues-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list issues@phoenix.apache.org Received: (qmail 35284 invoked by uid 99); 9 Apr 2019 19:52:23 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2019 19:52:23 +0000 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 82C30E2A67 for ; Tue, 9 Apr 2019 20:12: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 1E91A24595 for ; Tue, 9 Apr 2019 20:12:00 +0000 (UTC) Date: Tue, 9 Apr 2019 20:12:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5233) Read-your-own writes causes incorrect visibility with transactional tables (with Omid). MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5233?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 813776#comment-16813776 ]=20 Lars Hofhansl commented on PHOENIX-5233: ---------------------------------------- Thanks [~jamestaylor], that was my understand as well. To be precise I see the inconsistencies only (1) *while* the commit is runn= ing (and not finished) and (2) only when uncommited edits are forced to the= server (either by injecting a read-query, or my changes in PHOENIX-5090). And even then I do not always see it... Seems to be some kind of race, or m= aybe something is wrong the timestamps? (I'm using WORLD_TIME) This case is indeed an insert into the same table. I was going to try just = not doing the checkpoint next, but then an UPSERT/SELECT would not behave a= s expected...? > Read-your-own writes causes incorrect visibility with transactional table= s (with Omid). > -------------------------------------------------------------------------= -------------- > > Key: PHOENIX-5233 > URL: https://issues.apache.org/jira/browse/PHOENIX-5233 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.14.1 > Reporter: Lars Hofhansl > Assignee: Yonatan Gottesman > Priority: Major > > (copied from my last comment on PHOENIX-5090) > Steps to reproduce (with Omid): > # {{!autocommit off}} > # {{create table test (pk1 integer not null, pk2 integer not null, pk3 i= nteger not null, v1 float, v2 float, v3 integer CONSTRAINT pk PRIMARY KEY (= pk1, pk2, pk3)) DISABLE_WAL=3Dtrue, TRANSACTIONAL=3Dtrue;}} > # {{upsert into test values(rand()*10000000, rand()*10000000, rand()*100= 00000, rand(), rand(), rand()*1000000);}} > # {{upsert into test select rand()*10000000, rand()*10000000, rand()*100= 00000, rand(), rand(), rand()*1000000 from test;}} > # {{select count\(*) from test; =E2=80=93 this will cause uncommitted da= ta to sent to the server.}} > # Goto #4 a few time (until you inserted 131072 rows) > # {{!commit}} > In a separate sqlline session just repeat after the commit was issued in = the other session. > * {{select count\(*) from test;}} > You'll see that number will change until it finally settles. -- This message was sent by Atlassian JIRA (v7.6.3#76005)