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
         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