You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/18 15:17:00 UTC

[jira] [Commented] (TRAFODION-2722) change purgedata to use hbase truncate api instead of drop/create

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

ASF GitHub Bot commented on TRAFODION-2722:
-------------------------------------------

GitHub user anoopsharma00 opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/1211

    TRAFODION-2722 Change purgedata to use HBase truncate api

    Traf now uses HBase truncate api to delete all rows from
    a table and indexes, instead of dropping/recreating underlying HBase
    objects.
    
    A second change has also been added to fix a bug where compiler cache
    was being cleared whenever a DDL statement was issued.
    This change was added a while back before Query Invalidation(QI) feature
    was available and was not removed when QI was added.
    It has now been removed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anoopsharma00/incubator-trafodion ansharma_trafr23_br

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/1211.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1211
    
----
commit a3669571d6df1d6b6aa2ae8b521dd662f2a910a7
Author: Anoop Sharma <an...@esgyn.com>
Date:   2017-08-18T15:07:32Z

    TRAFODION-2722 Change purgedata to use HBase truncate api
    
    Traf now uses HBase truncate api to delete all rows from
    a table and indexes, instead of dropping/recreating underlying HBase
    objects.
    
    A second change has also been added to fix a bug where compiler cache
    was being cleared whenever a DDL statement was issued.
    This change was added a while back before Query Invalidation(QI) feature
    was available and was not removed when QI was added.
    It has now been removed.

----


> change purgedata to use hbase truncate api instead of drop/create
> -----------------------------------------------------------------
>
>                 Key: TRAFODION-2722
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2722
>             Project: Apache Trafodion
>          Issue Type: Improvement
>            Reporter: Anoop Sharma
>            Assignee: Anoop Sharma
>            Priority: Minor
>
> currently, traf purgedata command runs by first dropping underlying hbase
> objects for a table and its associated indexes, and then recreating them.
> At recreation time, the original hbase options and keys are used.
> drop/create was done during early days of traf when hbase didn't provide an api
> to truncate objects.
> Now that the truncate api is available, this jira proposes changing code to use it
> instead of drop/create. This would improve performance as well as avoid the need
> to recreate using the original options.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)