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

guluo updated HBASE-29247:
--------------------------
    Description: 
hbase supports specified compaction policy when creating table, as follow.
{code:java}
create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 
'org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy' }} 
{code}
 

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.
{code:java}
create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 
'org.apache.hadoop.hbase.regionserver.compactions.ErrorCompactionPolicy' }} 
{code}
 

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.

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

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

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.
{code:java}
create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 
'org.apache.hadoop.hbase.regionserver.compactions.ErrorCompactionPolicy' }} 
{code}
 

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.


> 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
>            Priority: Major
>
> hbase supports specified compaction policy when creating table, as follow.
> {code:java}
> create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
> 'hbase.hstore.defaultengine.compactionpolicy.class' => 
> 'org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy' 
> }} {code}
>  
> 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.
> {code:java}
> create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
> 'hbase.hstore.defaultengine.compactionpolicy.class' => 
> 'org.apache.hadoop.hbase.regionserver.compactions.ErrorCompactionPolicy' }} 
> {code}
>  
> 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