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

Yuhao Bi commented on HBASE-13776:
----------------------------------

when I trying to create a test table with this HColumnDescriptor, there is no 
exception thrown.
And, describe that table it shows "VERSIONS => '123',... MIN_VERSIONS => 
'234'". In this case Min_VERSIONS is 234, sorry about that.

If you setMinVersions first, you will got an IllegalArgumentException 
exception, because 
setMaxVersions checked the value before it set.


> set illegal versions for HColumnDescriptor did not throw 
> IllegalArgumentException 
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-13776
>                 URL: https://issues.apache.org/jira/browse/HBASE-13776
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Yuhao Bi
>            Priority: Minor
>
> HColumnDescriptor hcd = new HColumnDescriptor(
>         new HColumnDescriptor(HConstants.CATALOG_FAMILY)
>             .setInMemory(true)
>             .setScope(HConstants.REPLICATION_SCOPE_LOCAL)
>             .setBloomFilterType(BloomType.NONE)
>             .setCacheDataInL1(true));
>     final int minVersions = 123;
>     final int maxVersions = 234;
>     hcd.setMaxVersions(minVersions);
>     hcd.setMinVersions(maxVersions);
> //no exception throw



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to