From dev-return-56547-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Sun May 19 02:48:03 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 A454A180675 for ; Sun, 19 May 2019 04:48:02 +0200 (CEST) Received: (qmail 69221 invoked by uid 500); 19 May 2019 02:48:01 -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 69204 invoked by uid 99); 19 May 2019 02:48:01 -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; Sun, 19 May 2019 02:48:01 +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 EC118E2C41 for ; Sun, 19 May 2019 02:48: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 47E772581A for ; Sun, 19 May 2019 02:48:00 +0000 (UTC) Date: Sun, 19 May 2019 02:48:00 +0000 (UTC) From: "jaanai (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4907) IndexScrutinyTool should use empty catalog instead of null 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-4907?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] jaanai updated PHOENIX-4907: ---------------------------- Fix Version/s: 5.0.1 > IndexScrutinyTool should use empty catalog instead of null > ---------------------------------------------------------- > > Key: PHOENIX-4907 > URL: https://issues.apache.org/jira/browse/PHOENIX-4907 > Project: Phoenix > Issue Type: Improvement > Affects Versions: 5.0.0, 4.15.0 > Reporter: Geoffrey Jacoby > Assignee: Geoffrey Jacoby > Priority: Major > Fix For: 4.15.0, 4.14.1, 5.1.0, 5.0.1 > > Attachments: PHOENIX-4907.patch > > > Before executing, the index scrutiny tool does a sanity check to make sur= e that the given data table and index are valid and related to each other. = This check uses the JDBC metadata API, and passes in null for the catalog n= ame.=C2=A0 > Unfortunately, a null entry for catalog causes Phoenix to omit tenant_id = from the query against System.Catalog, causing a table scan, which can be l= engthy or time out if the server has too many views.=C2=A0 > It should pass in the empty string for catalog, which will make Phoenix f= ilter on "WHERE tenant_id is NULL", which will avoid the table scan.=C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)