Repository navigation
v5.14.1
Nuthatch 5.14.1 corrects how a remote follower's visibility lag is measured, contains a panic while a
nest joins a running runtime, and stops a refusing RPC endpoint from flooding the log. There is no
storage migration, and no nest's NID, registry hash or sealed segment changes.
Follower visibility lag measures visibility
nuthatch_feed_visibility_seconds is recorded on the writer's clock: the time a follower's
acknowledgement arrives, less the generation's commit, less half the round trip of the report that
carried it. In 5.14.0 two things were wrong with it.
A follower sent its reports to /_admin/feed/applied one at a time, each waiting for the last to be
answered. When two mounts committed on the same block, the second dataset's figure included a whole
round trip of waiting. Measured across a 43 ms link, the second dataset's p50 read 73 ms against the
first's 20 ms. Reports now go concurrently, up to eight at once.
The correction also subtracted half of the previous report's round trip rather than the one that
carried the acknowledgement. On a jittery link a stale long trip pinned observations at zero, and a
stale short one inflated them. Each report is now numbered, the round trips of finished reports travel
back on a later one, and the writer holds each acknowledged generation until its own trip arrives. A
report overtaken by a later one is ignored rather than moving a position back.
Who is affected: anyone reading follower visibility lag. Figures taken on 5.14.0, particularly for a
writer with more than one mount, overstate it; measure again on 5.14.1.
A panic while a nest joins is that mount's error
A mount added to a running runtime builds its nest and catches it up before it joins the cursor. The
cursor's own work on each nest already turned a panic into that nest's fault, but the join did not. A
panic there unwound the admin request past the cleanup that stops the nest's alert worker and closes
its store. It now fails that mount, releases what it held, and leaves the co-tenants on the cursor
indexing.
A refusing RPC endpoint is reported once per cool-down
An endpoint that refuses a request is cooled down for 300 seconds. Every call already in flight
refused again, and each refusal restarted the cool-down and logged it: 64 lines in a minute for one
endpoint answering 403. The first refusal now begins the cool-down and logs it; refusals inside it do
neither.
Compatibility and upgrade
Replace the binary and restart. A 5.14.0 store is used as it is. Writers and followers of 5.14.0 and
5.14.1 work together in either direction: a 5.14.0 writer ignores the new report fields, and a 5.14.0
follower is corrected by its reported round trip as before, with the old inaccuracy.
The date and timestamp rewrite in /sql answers moved into nuthatch-core so the in-browser nest
shares it. The node's answers are unchanged.