You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Gokcen Iskender (JIRA)" <ji...@apache.org> on 2019/04/29 19:56:00 UTC

[jira] [Commented] (PHOENIX-5263) Provide an option to fully rebuild LOCAL indexes asynchronously through SQL

    [ https://issues.apache.org/jira/browse/PHOENIX-5263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16829661#comment-16829661 ] 

Gokcen Iskender commented on PHOENIX-5263:
------------------------------------------

When we try to clear out the local index data, one option is to drop the column family of the local index. However, two local indexes with different names and columns still has the column family L#0 so we cannot drop that column family.

> Provide an option to fully rebuild LOCAL indexes asynchronously through SQL
> ---------------------------------------------------------------------------
>
>                 Key: PHOENIX-5263
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5263
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Gokcen Iskender
>            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 partial 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.  This is burdensome as it requires have the schema DDL.
> We should have an option to fully rebuild asynchronously, that has the same semantics as dropping and recreating the index.  A further advantage of this is we can maintain the splits of the index table while dropping its data.  We are currently seeing issues where rebuilding a large table via a MR job results in hotspotting due to all data regions writing to the same index region at the start.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)