Skip to content

v4.1.0 — hot-tier query routing, stream replay hardening, asc range bounds

Latest

Choose a tag to compare

@igorls igorls released this 07 Aug 07:20
· 6 commits to main since this release
a11de79

A performance-focused release: opt-in hot-tier routing keeps the most common history queries off old/cold shards, stream history replays are bounded by default, and sort=asc accepts sequence/block ranges as bounds.

New Features (opt-in, default off)

  • Hot-first routing for get_actions account polls (#176, #177): with api.hot_first_actions: true, unbounded newest-first account polls (?account=X&limit=N, desc, no time bound) search only the newest api.hot_first_window (default 2) action partitions and widen to the full set only if the window returns fewer than limit hits — heavy pollers never fan out to old/warm shards. Responses served from the hot window carry hot_first: true. Also repairs ?hot_only=true, which previously targeted a non-existent alias.
  • Recent-first routing for get_transaction (#180): with api.hot_first_transaction: true, a hint-less trx_id lookup probes the hot window first and widens to all partitions only on a miss. Since all of a transaction's documents share one partition, a hot-window hit is provably complete — recent lookups never touch the cold tier.
  • get_transaction profiling (#181): api.hot_first_transaction_profiling: true logs per-request phase timings and parts_back so operators can size hot_first_window from measured lookup age distribution. Noisy — sample briefly, then disable.
  • Row-deletion deltas restored (opt-in): features.index_deltas_deletions: true re-enables indexing of present=0 contract-row deltas as distinct deletion documents (lost in 4.0 when the delta-updater worker was removed), restoring deletion history in get_deltas. Requires a reindex of the affected range.

Fixes

  • Stream history replay hardened against unbounded cold-tier walks (#178): replays are now capped at api.stream_max_concurrent_replays (default 4) per API process, stream_scroll_limit defaults to 50000 when unset (previously unlimited; -1 still means unlimited but warns past 100k docs), and scroll contexts are guaranteed released on every exit path (previously leaked on reject/timeout/NACK, pinning cold segments).
  • get_transaction no longer masks Elasticsearch errors: non-404 ES errors propagate with the real cause instead of ending in a TypeError.

Improvements

  • sort=asc accepts a global_sequence/block_num range as a valid bound on get_actions v2 (#182) — a range on the default sort field already bounds the scan, so it now satisfies the bound requirement without needing after/before. New api.require_bounded_asc (default true) lets self-hosted operators disable the asc bound guard entirely.

Upgrade note: if your config leaves stream_scroll_limit unset, history replays are now capped at 50000 docs per request; set -1 explicitly to keep unlimited scrolls (the new concurrency cap applies regardless).

Full details in CHANGELOG.md.