Skip to content

v0.55.0

Latest

Choose a tag to compare

@zaidoon1 zaidoon1 released this 04 Dec 21:00
· 3 commits to master since this release
Immutable release. Only release title and notes can be modified.

What's Changed

This release moves the bundled RocksDB from 11.12.0 to 11.14.0, which also covers 11.13.x. Read these before upgrading:

  • EnvPriority::User is now 4. RocksDB 11.14 inserted a READ thread pool before USER. CompactionServiceJobInfo::priority keeps decoding USER correctly and returns None for READ. Code that casts EnvPriority::User to an integer sees 4 instead of 3. (@zaidoon1)
  • With auto-resume off, IO errors in flushes and compactions are hard errors. With set_max_bgerror_resume_count at 0 or below, a retryable or file-scoped IO error during a flush or compaction now stops writes until resume is called.
  • Four UDI methods are deprecated, as upstream deprecated them: set_use_udi_as_primary_index, set_fail_if_no_udi_on_open and their getters. Use set_index_mode. Builds that deny warnings will notice. (@zaidoon1)
  • coroutines users need to rerun scripts/build_folly.sh, since RocksDB moved its folly pin. (@zaidoon1)

Features

  • Batched pinned reads on TransactionDB: batched_multi_get_pinned and batched_multi_get_pinned_batch, with _opt, _cf and _cf_opt variants, as on DB. Under WritePrepared and WriteUnprepared, RocksDB reads key by key, so set a snapshot to read every key at one point in time. (@zaidoon1)
  • DBRawIterator::prepare_value loads a value that ReadOptions::set_allow_unprepared_value deferred, such as one in a blob file. (@kmorkos)
  • Options added in RocksDB 11.13 and 11.14: BlockBasedOptions::set_index_mode and ReadOptions::set_read_index (experimental), set_reject_too_old_file on the ingest and import options, CompactOptions::set_skip_missing_blob_files, Options::set_use_separate_remote_compaction_pool, Options::set_track_options_file_number_in_manifest (experimental) and TraceOptions::set_include_read_write_options. (@zaidoon1)

Fixes

  • Batched reads on DB no longer leak when RocksDB throws, with the bundled RocksDB. They went through upstream's C function, which doesn't catch, so an exception leaked its arrays and the block cache entries their values pinned. (@zaidoon1)
  • Windows builds against a system RocksDB compile the crate's C++ shim with exception unwinding, and stop with a clear error if CXXFLAGS, CXX, CL or _CL_ brings back the c of /EHsc. (@zaidoon1)

Upstream fixes and behavior changes

  • Data loss: fixed for WALs reused under set_recycle_log_file_num, and for two range-tombstone conversion bugs under set_min_tombstones_for_range_conversion.
  • multi_get could report existing keys outside the prefix extractor's domain as missing with some partitioned-filter settings. get was not affected.
  • create_cf now validates table options the way opening a DB does.
  • Async reads are charged to the rate limiter like synchronous ones.
  • Ingested files keep the creation times recorded in them, so old data can come due for periodic compaction or TTL soon after ingestion.
  • Snapshots on a primary no longer take the DB mutex in the common case, and perf context counting costs about 60% less.

Performance

  • Batched pinned reads on DB keep up to 32 keys' slices and results on the stack. batched_multi_get_pinned takes 11% less time at 1 key and 8% less at 4 keys. (@zaidoon1)
  • Probers built without caller options share one ReadOptions, so creating and dropping one takes 10% fewer instructions. (@zaidoon1)

rust-librocksdb-sys moves to 0.50.0+11.14.0.

Full notes are in CHANGELOG.md.

Full Changelog: v0.54.1...v0.55.0