]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/docs/_posts/2016-07-26-rocksdb-4-8-released.markdown
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / docs / _posts / 2016-07-26-rocksdb-4-8-released.markdown
CommitLineData
7c673cae
FG
1---
2title: RocksDB 4.8 Released!
3layout: post
4author: yiwu
5category: blog
6redirect_from:
7 - /blog/3239/rocksdb-4-8-released/
8---
9
10## 4.8.0 (5/2/2016)
11
1e59de90 12### [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#public-api-change-1)Public API Change
7c673cae
FG
13
14 * Allow preset compression dictionary for improved compression of block-based tables. This is supported for zlib, zstd, and lz4. The compression dictionary's size is configurable via CompressionOptions::max_dict_bytes.
15 * Delete deprecated classes for creating backups (BackupableDB) and restoring from backups (RestoreBackupableDB). Now, BackupEngine should be used for creating backups, and BackupEngineReadOnly should be used for restorations. For more details, see [https://github.com/facebook/rocksdb/wiki/How-to-backup-RocksDB%3F](https://github.com/facebook/rocksdb/wiki/How-to-backup-RocksDB%3F)
16 * Expose estimate of per-level compression ratio via DB property: "rocksdb.compression-ratio-at-levelN".
17 * Added EventListener::OnTableFileCreationStarted. EventListener::OnTableFileCreated will be called on failure case. User can check creation status via TableFileCreationInfo::status.
18
1e59de90 19### [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#new-features-2)New Features
7c673cae
FG
20
21 * Add ReadOptions::readahead_size. If non-zero, NewIterator will create a new table reader which performs reads of the given size.
22
23<br/>
24
25<!--truncate-->
26
1e59de90 27## [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#470-482016)4.7.0 (4/8/2016)
7c673cae 28
1e59de90 29### [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#public-api-change-2)Public API Change
7c673cae
FG
30
31 * rename options compaction_measure_io_stats to report_bg_io_stats and include flush too.
32 * Change some default options. Now default options will optimize for server-workloads. Also enable slowdown and full stop triggers for pending compaction bytes. These changes may cause sub-optimal performance or significant increase of resource usage. To avoid these risks, users can open existing RocksDB with options extracted from RocksDB option files. See [https://github.com/facebook/rocksdb/wiki/RocksDB-Options-File](https://github.com/facebook/rocksdb/wiki/RocksDB-Options-File) for how to use RocksDB option files. Or you can call Options.OldDefaults() to recover old defaults. DEFAULT_OPTIONS_HISTORY.md will track change history of default options.
33
34<br/>
35
1e59de90 36## [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#460-3102016)4.6.0 (3/10/2016)
7c673cae 37
1e59de90 38### [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#public-api-changes-1)Public API Changes
7c673cae
FG
39
40 * Change default of BlockBasedTableOptions.format_version to 2. It means default DB created by 4.6 or up cannot be opened by RocksDB version 3.9 or earlier
41 * Added strict_capacity_limit option to NewLRUCache. If the flag is set to true, insert to cache will fail if no enough capacity can be free. Signature of Cache::Insert() is updated accordingly.
42 * Tickers [NUMBER_DB_NEXT, NUMBER_DB_PREV, NUMBER_DB_NEXT_FOUND, NUMBER_DB_PREV_FOUND, ITER_BYTES_READ] are not updated immediately. The are updated when the Iterator is deleted.
43 * Add monotonically increasing counter (DB property "rocksdb.current-super-version-number") that increments upon any change to the LSM tree.
44
1e59de90 45### [](https://github.com/facebook/rocksdb/blob/main/HISTORY.md#new-features-3)New Features
7c673cae
FG
46
47 * Add CompactionPri::kMinOverlappingRatio, a compaction picking mode friendly to write amplification.
48 * Deprecate Iterator::IsKeyPinned() and replace it with Iterator::GetProperty() with prop_name="rocksdb.iterator.is.key.pinned"