Repository navigation
v0.8.2
Backfills on Alchemy no longer die, and the slowest part of a backfill got faster. In-place safe from 0.8.x and 0.7.x: no data migration, no config changes, no schema change.
If you backfill against Alchemy, upgrade. The first item below is a bug that stops a backfill completing, not a slowdown.
A documented default-path backfill was aborting
Error: seal-direct getLogs 20700000..=20749999 failed after 5 attempts
1: HTTP 400 Bad Request: {"error":{"code":-32602,"message":"Log response size exceeded…"}}
--window 50000 is not an exotic choice - it is what our own dev --window help text recommends for a sparse contract over a long backfill. A user following our documentation, on the most common provider, got a dead backfill.
Why every safety net missed it. classify_status enumerated 401, 403, 413 and 429 and fell through to Transient; Alchemy returns its oversized-range refusal as HTTP 400. The consequences compounded: the cap-marker list became unreachable (it contains "response size" and would have matched), the body never reached the JSON-RPC classifier so Alchemy's own suggested range was discarded into a truncated log line, and the window was retried five times at the same width before the backfill died.
RFC-0028's speculative split could not rescue it either, and it is honest about why: the split is deliberately non-recursive because "a genuine size failure re-triggers the classified path on the halves anyway". Here the halves were misclassified too. That is also why neighbouring windows sometimes logged succeeded when split - those were the ones where a single halving happened to be enough. Same cap, same provider, one window rescued and one fatal.
The rule, which matters more than the fix. RFC-0028 established that a marker list is a liability. This extends it: a status-code list is a liability too. Transient is the absence of a classification rather than a positive finding, so it must never outrank direct textual evidence of a cap. Adding 400 to the list on its own would have been the same mistake with a different number - so the fix classifies the body on non-2xx responses, and the narrow 400 rule is belt to those braces.
The timestamp path, which is most of a backfill
Timestamp acquisition measured at roughly 85% of backfill wall clock, and it was the one part of the pipeline still running sequentially while the window fan-out beside it was concurrent.
- The sub-batches now go out concurrently, capped conservatively at 4. Ten-way was measured producing 2 failures in 10 on a real endpoint, and a partial timestamp response is already an error here - it would seal
block_timestamp=0and break determinism. - Timestamps are remembered across windows, so a split-and-retry no longer re-fetches the blocks it just fetched.
The cache ships with its invalidation, not as a follow-up. A block number is not a block identity: after a reorg the block at that height is a different block with a different timestamp, and block_timestamp is a sealed column feeding the segment's content address. A stale entry would seal a value that re-executing against the canonical chain could not reproduce. Every reorg now drops cached entries above the fork, keeping those at or below it - those blocks are common to both chains, which is what makes it the ancestor.
A correction to how you should read past benchmark numbers
The backfill benchmark was writing rows with one redb transaction - and one fsync - per row, while the indexer itself commits once per window. store.rs records that exact shape as the thing that capped tip-follow throughput far below the decode rate, and is why the batched path exists.
So every events/sec figure this benchmark has ever produced was a floor set by fsync, not by nuthatch. It now uses the production path.
No new number is published here. A figure produced by an instrument fixed in the same release is not evidence, and any improvement is a harness correction rather than a product gain.
Benchmark reports now also carry provider (the endpoint's host only - providers put API keys in the path, and reports get pasted into issues) and hardware, so RFC-0004's "every published number traces to provider, hardware, date and commit" is mechanically enforced rather than a documentation promise.
Verifying the download
curl -fsSLO https://github.com/nuthatch-indexer/nuthatch/releases/download/v0.8.2/nuthatch-x86_64-unknown-linux-gnu.tar.gz
curl -fsSLO https://github.com/nuthatch-indexer/nuthatch/releases/download/v0.8.2/nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256
sha256sum -c nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256| Artifact | Contains |
|---|---|
nuthatch-x86_64-unknown-linux-gnu.tar.gz · :0.8.2 · :latest |
embedded - no database driver |
nuthatch-scaled-x86_64-unknown-linux-gnu.tar.gz · :0.8.2-scaled |
scaled - worker, control, serve --hot-store |
Still to come in RFC-0029
Demand-driven timestamps - skipping the fetch entirely for a nest that never references block_timestamp - is the largest remaining win and is not in this release. It drops a column from every table, which RFC-0020 correctly classifies as a breaking change, and it changes segment identity so a switched nest cannot reuse its own sealed segments. That makes it an init-time declaration with a schema version bump, not a flag, and it will land in 0.9.0.