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

Kannan Muthukkaruppan commented on HBASE-3118:
----------------------------------------------

+1.

On a related note, if you use alter table to change the settings for a CF, you 
must provide all the non-default settings once again even if you don't want to 
change them.

For example, if you had VERSION => 5, COMPRESSION => 'NONE' on a column family, 
and you did an alter, and provided just COMPRESSION => 'LZO', then the VERSION 
setting reverts back to the default (3).

It would be nice if the "alter" read the old state, and applied only the delta 
change.



> HBaseAdmin.createTable and modifyTable should have a family check
> -----------------------------------------------------------------
>
>                 Key: HBASE-3118
>                 URL: https://issues.apache.org/jira/browse/HBASE-3118
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.20.6
>         Environment: 0.20.6, Linux, Java 1.6+
>            Reporter: Vaibhav Puranik
>
> Currently HBaseAdmin.modifyTable does not check whether any family is 
> supplied or not. I can execute this method without supplying any families and 
> that puts the table in inconsistent state.
> In my opinion, modifyTable should let you modifyTable without overwriting. 
> But looks like it doesn't do that. This can be very dangerous as you can end 
> up overwriting a table in production and loose data. But if we are going to 
> keep the behavior then at least some checks should be added to make it safer.

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

Reply via email to