From issues-return-3318-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Dec 11 06:24:04 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3ED7A180648 for ; Tue, 11 Dec 2018 06:24:04 +0100 (CET) Received: (qmail 19826 invoked by uid 500); 11 Dec 2018 05:24:03 -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 19817 invoked by uid 99); 11 Dec 2018 05:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2018 05:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CCAC6180CA7 for ; Tue, 11 Dec 2018 05:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id eflUFm8-epcJ for ; Tue, 11 Dec 2018 05:24:01 +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 4AE615F19A for ; Tue, 11 Dec 2018 05:24: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 BB81AE25B0 for ; Tue, 11 Dec 2018 05:24: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 32674252FC for ; Tue, 11 Dec 2018 05:24:00 +0000 (UTC) Date: Tue, 11 Dec 2018 05:24:00 +0000 (UTC) From: "Hudson (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5025) Tool to clean up orphan views 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-5025?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 716213#comment-16716213 ]=20 Hudson commented on PHOENIX-5025: --------------------------------- FAILURE: Integrated in Jenkins build Phoenix-4.x-HBase-1.4 #27 (See [https:= //builds.apache.org/job/Phoenix-4.x-HBase-1.4/27/]) PHOENIX-5025 Tool to clean up orphan views (chinmayskulkarni: rev e88051a3e= 825374baac898de160ca4e897e14426) * (add) phoenix-core/src/main/java/org/apache/phoenix/mapreduce/OrphanViewT= ool.java * (add) phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolI= T.java > Tool to clean up orphan views > ----------------------------- > > Key: PHOENIX-5025 > URL: https://issues.apache.org/jira/browse/PHOENIX-5025 > Project: Phoenix > Issue Type: New Feature > Reporter: Kadir OZDEMIR > Assignee: Kadir OZDEMIR > Priority: Major > Fix For: 5.0.0 > > Attachments: PHOENIX-5025.master.0001.patch, PHOENIX-5025.master.= patch > > > A view without its base table is an orphan view. Since views are virtual = tables and their data is stored in their base tables, they are useless when= they become orphan. A base table can have child views, grandchild views an= d so on. Due to some reasons/bugs, when a base table was dropped, its views= were not not properly cleaned up in the past. For example, the drop table = code did not support cleaning up grandchild views. This has been recently f= ixed by PHOENIX-4764.=C2=A0Although=C2=A0PHOENIX-4764 prevents new orphan v= iews=C2=A0due to table drop operations, it does not clean up existing orpha= n views. It is also believed that when the system catalog table was split d= ue to a bug in the past, it also contributed to creating orphan views as Ph= oenix did not support splittable system catalog. Therefore,=C2=A0Phoenix ne= eds a tool to clean up orphan views. -- This message was sent by Atlassian JIRA (v7.6.3#76005)