Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
Description
Reference guide has this section under compaction.
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.
This is incorrect, the default value is 1.
Additionally, HColumnDescriptor is deprecated and the example should use ColumnFamilyDescriptorBuilder$setMaxVersions(int) instead.
Attachments
Issue Links
- links to