hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hsieh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8332) Add truncate as HMaster method
Date Wed, 20 Nov 2013 22:25:35 GMT

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

Jonathan Hsieh commented on HBASE-8332:
---------------------------------------

Since this is a new method on a public api, can we just choose a single method instead of
all the different flavors?  

I prefer this one: 
{code}
+   */
+  public void truncateTable(final TableName tableName) throws IOException {
+    truncateTable(tableName, false);
+  }
{code}

... 

Before I review more can you post to review board?  



> Add truncate as HMaster method
> ------------------------------
>
>                 Key: HBASE-8332
>                 URL: https://issues.apache.org/jira/browse/HBASE-8332
>             Project: HBase
>          Issue Type: Improvement
>          Components: master
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Minor
>         Attachments: HBASE-8332-v0.patch, HBASE-8332.draft.patch
>
>
> Currently truncate and truncate_preserve are only shell functions, and implemented as
deleteTable() + createTable().
> Using ACLs the user running truncate, must have rights to create a table and only "global
granted" users can create tables.
> Add truncate() and truncatePreserve() to HBaseAdmin/HMaster with its own ACL check.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message