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 29922200C7F for ; Wed, 10 May 2017 00:40:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 281D5160BC3; Tue, 9 May 2017 22:40:09 +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 6DAC9160BB6 for ; Wed, 10 May 2017 00:40:08 +0200 (CEST) Received: (qmail 79353 invoked by uid 500); 9 May 2017 22:40:07 -0000 Mailing-List: contact dev-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 dev@phoenix.apache.org Received: (qmail 79341 invoked by uid 99); 9 May 2017 22:40:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2017 22:40:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0E20AC030F for ; Tue, 9 May 2017 22:40:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3dkEYLgdSv_8 for ; Tue, 9 May 2017 22:40:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 26F5B5F2EE for ; Tue, 9 May 2017 22:40:05 +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 6A399E02C7 for ; Tue, 9 May 2017 22:40:04 +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 29A4A21E09 for ; Tue, 9 May 2017 22:40:04 +0000 (UTC) Date: Tue, 9 May 2017 22:40:04 +0000 (UTC) From: "Maddineni Sukumar (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3841) Phoenix View creation failure with Primary table not found error when we use update_cache_frequency for primary table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 09 May 2017 22:40:09 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3841?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 003685#comment-16003685 ]=20 Maddineni Sukumar commented on PHOENIX-3841: -------------------------------------------- Yes it fixed the issue I was facing because it got latest values for parent= table from server along with timestamp, earlier when we read from cache we= were getting values with timestamp -1(QueryConstants.UNSET_TIMESTAMP).=20 Attaching v3 with comments. Thanks [~jamestaylor] > Phoenix View creation failure with Primary table not found error when we = use update_cache_frequency for primary table > -------------------------------------------------------------------------= -------------------------------------------- > > Key: PHOENIX-3841 > URL: https://issues.apache.org/jira/browse/PHOENIX-3841 > Project: Phoenix > Issue Type: Sub-task > Affects Versions: 4.10.0 > Reporter: Maddineni Sukumar > Assignee: Maddineni Sukumar > Priority: Minor > Fix For: 4.11 > > Attachments: PHOENIX-3841.patch, PHOENIX-3841.v2.patch, PHOENIX-3= 841.v3.patch > > > Create VIEW command failing with actual table not found error and next re= try failed with VIEW already exists error..And its continuing like that(fir= st tabelnotfound and then view already exists).. > If I create table without UPDATE_CACHE_FREQUENCY then its working fine. > Create table command: > create table UpdateCacheViewTestB (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 = VARCHAR) UPDATE_CACHE_FREQUENCY=3D100000; > Create View command: > CREATE VIEW my_view (v43 VARCHAR) AS SELECT * FROM UpdateCacheViewTestB W= HERE v1 =3D 'value1=E2=80=99; > sqlline Console output: > 0: jdbc:phoenix:shared-mnds1-1-sfm.ops.sfdc.n> select * from UPDATECACHEV= IEWTESTB; > -------------------------------------------------------------------------= ------------------------------------------------- > K=09V1=09V2 > -------------------------------------------------------------------------= ------------------------------------------------- > 0: jdbc:phoenix:shared-mnds1-1-sfm.ops.sfdc.n> CREATE VIEW my_view (v43 V= ARCHAR) AS SELECT * FROM UpdateCacheViewTestB WHERE v1 =3D 'value1'; > Error: ERROR 1012 (42M03): Table undefined. tableName=3DUPDATECACHEVIEWTE= STB (state=3D42M03,code=3D1012) > 0: jdbc:phoenix:shared-mnds1-1-sfm.ops.sfdc.n> CREATE VIEW my_view (v43 V= ARCHAR) AS SELECT * FROM UpdateCacheViewTestB WHERE v1 =3D 'value1'; > Error: ERROR 1013 (42M04): Table already exists. tableName=3DMY_VIEW (sta= te=3D42M04,code=3D1013) > 0: jdbc:phoenix:shared-mnds1-1-sfm.ops.sfdc.n> CREATE VIEW my_view (v43 V= ARCHAR) AS SELECT * FROM UpdateCacheViewTestB WHERE v1 =3D 'value1'; > Error: ERROR 1012 (42M03): Table undefined. tableName=3DUPDATECACHEVIEWTE= STB (state=3D42M03,code=3D1012) -- This message was sent by Atlassian JIRA (v6.3.15#6346)