Skip to main content

Zaris 2.2.0: The Resilience Release

· 8 min read
Clustron Team
Distributed Systems Engineering

There are two kinds of release. One adds capabilities — new commands, new data structures, a new API surface. The other removes failure modes, and from the outside it can look like nothing happened at all, because the whole point is that things which used to go wrong now quietly do not. Zaris 2.2.0 is firmly the second kind. It ships no headline new feature; it ships a cluster that survives a specific set of failures it previously survived badly or not at all.

Those failures share a theme, which is why they landed together: they are the dishonest ones. A TCP connection that is dead but reports itself alive. A Redis-protocol port that is open and unauthenticated and will cheerfully destroy your data if asked. A write that was acknowledged as safe but had not yet been made durable when the owner changed. Each of these is a gap between what the system said was true and what was true, and each is the kind of gap that stays invisible until the worst possible moment. 2.2.0 closes them.

This post is the tour. Two of the three changes have standalone deep-dives already; this is the map that shows how they fit, plus the upgrade details.

Self-healing transport: catching the connection that lies​

The failure: a replication connection goes half-open — one side keeps writing bytes into a socket whose far end is gone, the kernel buffers them, nothing errors — and a partition quietly stops making progress while every health signal says green. It is the most dishonest failure in a distributed store, because the thing that is broken (the connection) is the thing you would normally ask whether it is working.

The fix, in 2.2.0, is to stop trusting the socket and measure the one thing a wedged connection cannot fake: whether queued bytes actually drain. A per-peer sweep watches the outbound send backlog, and when it sees the backlog refusing to shrink across three consecutive stall sweeps — bytes written but not draining — it declares the link wedged, resets it, re-dials fresh, and forward-backfills whatever the replica fell behind on. No operator, no restart, and critically, no overreaction to the transient slowness that healthy clusters show all the time; the three-sweep threshold is what separates slow from dead.

The full mechanism — why the stall signature is unfakeable, and why the patience matters as much as the reset — is in When a Connection Lies.

RESP safety by default: refusing to wipe yourself​

The failure: a Redis-protocol endpoint stood up without a password, bound to every interface, honouring FLUSHALL from anyone who can reach the port. It is a convenience that doubles as a loaded gun, and the internet is full of scanners that pull the trigger within minutes of a port opening.

2.2.0 inverts the default. With no password configured, the RESP listener binds to loopback only, and destructive commands — FLUSHALL, FLUSHDB — are refused at dispatch with an explicit authentication error, with existing keys provably surviving the attempt. Both guards live in the server, so they hold in the dangerous first minutes of a deployment before any firewall rule has landed, and they travel with the store wherever it runs. You opt out deliberately — set a password for a credentialed production endpoint, or name the insecure-bind flag explicitly if you truly want an open one — so the unsafe posture is the one state you have to ask for by name.

The reasoning, the exact behaviour, and the flags are in Refusing to Wipe Yourself.

Durability under churn: an ack that means it​

The third change is quieter and the most important. A store's core promise is that an acknowledged write will not be lost. The subtle way to break that promise is around ownership change: a write is accepted and acked by an owner, ownership of that key then moves — a rebalance, a failover, a node rejoining — and if the ack was given before the write had been durably replicated to the copies that will outlive the handoff, the write can vanish in the transition. The client was told "safe." It was not safe yet.

2.2.0 tightens the gate. An acknowledgement is held until the write has been durably propagated to the replica set that guarantees it will survive an ownership change — the ack now trails durability rather than leading it. The effect is invisible in the happy path (the extra wait is small and overlaps normal replication) and decisive in the unhappy one: a write that returned success to the client is a write that is present after the owner changes, not merely one that was in flight when the client was told otherwise. This is the kind of guarantee you only notice when it is absent, at which point you notice it as missing data — so it is worth stating plainly that in 2.2.0, acked means durable across the handoff.

Self-healing transportdetect half-open,reset + backfillno operatorRESP safe by defaultloopback bind,refuse FLUSHALLno password = locked downDurable-ack gateack trails durabilityacross ownership changeacked = survives

Getting 2.2.0​

The release is published across every channel Zaris ships through, so upgrading looks like whatever you already do:

  • .NET packages — the client and server NuGets are on nuget.org at 2.2.0. For most applications the upgrade is a version bump; the wire protocol is unchanged from the 2.x line, so a 2.2.0 client and an older 2.x server interoperate during a rolling upgrade.
  • Containers — multi-architecture images (amd64 and arm64) for the node and manager are published at the 2.2.0 tag, so the same tag runs on Graviton and on x86 without a per-arch choice.
  • Helm — the chart is on the OCI registry at 2.2.0; point your release at the OCI reference and helm upgrade as usual.
  • Release archive — the GitHub release carries the self-contained packages for a native install, including the Windows build covered in A Zaris Cluster on Windows.

Because 2.2.0 is a resilience release rather than a breaking one, there is no migration step and no data format change. The application targets the same .NET 8 runtime as the rest of the 2.x line, and a cluster can be upgraded node by node. The behavioural changes are the ones described above: half-open links now heal themselves, a no-password RESP endpoint is locked down unless you open it, and acknowledgements now trail durability across ownership change. None of them require configuration to benefit from — the safer behaviour is the default, which is rather the point of the release.

Wrap-up​

2.2.0 does not give you anything new to build with. It gives you fewer ways to be surprised: a transport that notices its own silent partitions and heals them, a Redis-protocol surface that refuses to be the open door in your deployment's first five minutes, and a durability guarantee that no longer has a gap at the exact moment — ownership change — when you most need it to hold. These are the failures that do not announce themselves, and a release that quietly removes them is worth more than it looks, precisely because the measure of its success is that you never notice the outages that did not happen. Upgrade is a version bump on a non-breaking line; the resilience comes for free, on by default, the moment you are running 2.2.0.