Repository navigation
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_actionsaccount polls (#176, #177): withapi.hot_first_actions: true, unbounded newest-first account polls (?account=X&limit=N, desc, no time bound) search only the newestapi.hot_first_window(default 2) action partitions and widen to the full set only if the window returns fewer thanlimithits — heavy pollers never fan out to old/warm shards. Responses served from the hot window carryhot_first: true. Also repairs?hot_only=true, which previously targeted a non-existent alias. - Recent-first routing for
get_transaction(#180): withapi.hot_first_transaction: true, a hint-lesstrx_idlookup 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_transactionprofiling (#181):api.hot_first_transaction_profiling: truelogs per-request phase timings andparts_backso operators can sizehot_first_windowfrom measured lookup age distribution. Noisy — sample briefly, then disable.- Row-deletion deltas restored (opt-in):
features.index_deltas_deletions: truere-enables indexing ofpresent=0contract-row deltas as distinct deletion documents (lost in 4.0 when the delta-updater worker was removed), restoring deletion history inget_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_limitdefaults to 50000 when unset (previously unlimited;-1still 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_transactionno longer masks Elasticsearch errors: non-404 ES errors propagate with the real cause instead of ending in aTypeError.
Improvements
sort=ascaccepts aglobal_sequence/block_numrange as a valid bound onget_actionsv2 (#182) — a range on the default sort field already bounds the scan, so it now satisfies the bound requirement without needingafter/before. Newapi.require_bounded_asc(defaulttrue) lets self-hosted operators disable the asc bound guard entirely.
Upgrade note: if your config leaves
stream_scroll_limitunset, history replays are now capped at 50000 docs per request; set-1explicitly to keep unlimited scrolls (the new concurrency cap applies regardless).
Full details in CHANGELOG.md.