From dev-return-56358-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Mon May 6 17:16: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 947A918060F for ; Mon, 6 May 2019 19:16:03 +0200 (CEST) Received: (qmail 2527 invoked by uid 500); 6 May 2019 17:16:02 -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 2508 invoked by uid 99); 6 May 2019 17:16:02 -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; Mon, 06 May 2019 17:16:02 +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 77C99E2BA0 for ; Mon, 6 May 2019 17:16:01 +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 753D82581D for ; Mon, 6 May 2019 17:16:00 +0000 (UTC) Date: Mon, 6 May 2019 17:16:00 +0000 (UTC) From: "Gokcen Iskender (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4703) Provide an option to fully rebuild indexes asynchronously through SQL 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-4703?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokcen Iskender updated PHOENIX-4703: ------------------------------------- Attachment: PHOENIX-4703.patch > Provide an option to fully rebuild indexes asynchronously through SQL > --------------------------------------------------------------------- > > Key: PHOENIX-4703 > URL: https://issues.apache.org/jira/browse/PHOENIX-4703 > Project: Phoenix > Issue Type: Bug > Reporter: Vincent Poon > Assignee: Gokcen Iskender > Priority: Major > Attachments: PHOENIX-4703.patch > > Time Spent: 4h 50m > Remaining Estimate: 0h > > Currently if we run "ALTER INDEX ... REBUILD" , all the rows in the index= are deleted and the index is rebuilt synchronously. > "ALTER INEX ... REBUILD ASYNC" seems to be used for the IndexTool's parti= al rebuild option, rebuilding from ASYNC_REBUILD_TIMESTAMP (PHOENIX-2890) > So it seems currently the only way to fully rebuild is the drop the index= , and recreate it.=C2=A0 This is burdensome as it requires have the schema = DDL. > We should have an option to fully rebuild asynchronously, that has the sa= me semantics as dropping and recreating the index.=C2=A0 A further advantag= e of this is we can maintain the splits of the index table while dropping i= ts data.=C2=A0 We are currently seeing issues where rebuilding a large tabl= e via a MR job results in hotspotting due to all data regions writing to th= e same index region at the start. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)