[
https://issues.apache.org/jira/browse/HBASE-16111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15350828#comment-15350828
]
Appy commented on HBASE-16111:
------------------------------
Since the patch in HBASE-15965 compiled and passed TestShell, i believe there's
no test for truncate_preserve otherwise it would have caught this basic error.
:(
Sorry for causing this bug.
> Truncate preserve shell command is broken
> -----------------------------------------
>
> Key: HBASE-16111
> URL: https://issues.apache.org/jira/browse/HBASE-16111
> Project: HBase
> Issue Type: Bug
> Components: shell
> Reporter: Elliott Clark
> Assignee: Heng Chen
> Labels: shell
> Fix For: 2.0.0
>
> Attachments: HBASE-16111.patch
>
>
> On a recent version of master I get this:
> {code}
> hbase(main):001:0> truncate_preserve 'TestTable'
> ERROR: undefined local variable or method `table' for
> #<Hbase::Admin:0x2fdf17dc>
> Here is some help for this command:
> Disables, drops and recreates the specified table while still maintaing the
> previous region boundaries.
> Took 0.0290 seconds
> hbase(main):002:0> truncate 'TestTable'
> Truncating 'TestTable' table (it may take a while):
> Disabling table...
> Truncating table...
> Took 10.0040 seconds
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)