Peter Somogyi created HBASE-22299:
-------------------------------------

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


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)

Reply via email to