Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22299

Documentation has incorrect default number of versions

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              anis016 Sayed Anisul Hoque
              psomogyi Peter Somogyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: