You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "rajeshbabu (JIRA)" <ji...@apache.org> on 2012/08/27 14:03:08 UTC

[jira] [Commented] (HBASE-6642) disable_all '*' is not performing disable operation.

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

rajeshbabu commented on HBASE-6642:
-----------------------------------

This problem is because below code in disable_all.rb
{code}
        regex = /^#{regex}$/ unless regex.is_a?(Regexp)
        list = admin.list.grep(regex)
        count = list.size

{code}
in case of * regex will become ^*$ which is valid in Ruby and admin.list.grep(regex) gives all available tables.
But same expression(^*$) in Java returns empty list.
{code}
        failed = admin.disable_all(regex)
        puts "#{count - failed.size} tables successfully disabled"
        puts "#{failed.size} tables not disabled due to an exception: #{failed.join ','}" unless failed.size == 0
{code}
Even the number of tables to disabled is zero, output is "#{count - failed.size} tables successfully disabled".
This is applicable for enable_all and drop_all also.
                
> disable_all '*' is not performing disable operation.
> ----------------------------------------------------
>
>                 Key: HBASE-6642
>                 URL: https://issues.apache.org/jira/browse/HBASE-6642
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Y. SREENIVASULU REDDY
>            Assignee: rajeshbabu
>
> created few tables. then performing disable_all operation in shell prompt.
> but it is not performing operation successfully.
> {noformat}
> hbase(main):043:0> disable_all '*'
> table12
> zk0113
> zk0114
> Disable the above 3 tables (y/n)?
> y/
> 3 tables successfully disabled
> just it is showing the message but operation is not success.
> but the following way only performing successfully
> hbase(main):043:0> disable_all '*.*'
> table12
> zk0113
> zk0114
> Disable the above 3 tables (y/n)?
> y
> 3 tables successfully disabled
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira