guluo created HBASE-29247:
-----------------------------

             Summary: CreateTableProcedure can get stuck if an invalid 
compaction policy is specified
                 Key: HBASE-29247
                 URL: https://issues.apache.org/jira/browse/HBASE-29247
             Project: HBase
          Issue Type: Improvement
            Reporter: guluo


hbase supports specified compaction policy when creating table, as follow.

create 't01', \{NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 
'org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy' }}

However, specifying an invalid compaction policy will cause the 
`CreateTableProcedure` to get stuck. 
An invalid compaction policy refers to either a non-existent policy or one that 
is not a subclass of `CompactionPolicy`, as follow.
create 't01', \{NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 
'org.apache.hadoop.hbase.regionserver.compactions.ErrorCompactionPolicy' }}

This case is possible, as users might make mistakes when specifying the 
compaction policy.
So I think we should handle this exception due to its serious impact.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to