From dev-return-56210-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Apr 24 18:52: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 EA14818076D for ; Wed, 24 Apr 2019 20:52:02 +0200 (CEST) Received: (qmail 485 invoked by uid 500); 24 Apr 2019 18:52: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 473 invoked by uid 99); 24 Apr 2019 18:52: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; Wed, 24 Apr 2019 18:52: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 E61E7E2B20 for ; Wed, 24 Apr 2019 18:52: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 4DE7125815 for ; Wed, 24 Apr 2019 18:52:00 +0000 (UTC) Date: Wed, 24 Apr 2019 18:52:00 +0000 (UTC) From: "Geoffrey Jacoby (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (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 ] Geoffrey Jacoby reassigned PHOENIX-4703: ---------------------------------------- Assignee: Gokcen Iskender (was: Geoffrey Jacoby) > 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 > > 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)