You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Peter Somogyi (JIRA)" <ji...@apache.org> on 2019/04/24 14:18:00 UTC

[jira] [Resolved] (HBASE-22299) Documentation has incorrect default number of versions

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

Peter Somogyi resolved HBASE-22299.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Merged PR#189, Thanks [~anis016] for your contribution!

> Documentation has incorrect default number of versions
> ------------------------------------------------------
>
>                 Key: HBASE-22299
>                 URL: https://issues.apache.org/jira/browse/HBASE-22299
>             Project: HBase
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Peter Somogyi
>            Assignee: Sayed Anisul Hoque
>            Priority: Trivial
>              Labels: beginner
>             Fix For: 3.0.0
>
>
> Reference guide has this section under [compaction|https://hbase.apache.org/book.html#compaction].
> {quote}
> Compaction and Versions
> When you create a Column Family, you can specify the maximum number of versions to keep, by specifying HColumnDescriptor.setMaxVersions(int versions). The default value is 3. If more versions than the specified maximum exist, the excess versions are filtered out and not written back to the compacted StoreFile.
> {quote}
> This is incorrect, the default value is 1.
> Additionally, HColumnDescriptor is deprecated and the example should use ColumnFamilyDescriptorBuilder$setMaxVersions(int) instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)