hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christo Wilson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-2619) HBase shell 'alter' command cannot set table properties to False
Date Thu, 27 May 2010 22:11:40 GMT

     [ https://issues.apache.org/jira/browse/HBASE-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christo Wilson updated HBASE-2619:
----------------------------------

    Status: Patch Available  (was: Open)

Fixes the alter table command in the HBase shell.

> HBase shell 'alter' command cannot set table properties to False
> ----------------------------------------------------------------
>
>                 Key: HBASE-2619
>                 URL: https://issues.apache.org/jira/browse/HBASE-2619
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.20.4
>         Environment: CentOS
>            Reporter: Christo Wilson
>            Priority: Minor
>             Fix For: 0.21.0
>
>         Attachments: hbase_shell_alter_v1.patch
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> The alter table command in the HBase shell is broken. Specifically, attempting to set
boolean table options like BLOCKCACHE to False does not result in the expected behavior.
> This is due to bugs in the file src/main/ruby/hbase/admin.rb, in the hcd() function.
There many statements that look like this:
> arg[IN_MEMORY]? JBoolean.valueOf(arg[IN_MEMORY]): HColumnDescriptor::DEFAULT_IN_MEMORY
> The intent of this code is to 1) determine if a given parameter is present in the associative
array, 2) use the supplied value if it exists, or 3) use the default value if it does not
exist. However, in the case of boolean parameters that have been set to False this code instead
evaluates the variable (to False) and then chooses the default parameter value, which is incorrect.
> The attached patch fixes the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message