Skip to content

v0.3.0 — ondaDB 0.7.8, and Tier 2 complete

Choose a tag to compare

@github-actions github-actions released this 14 Aug 07:08
· 43 commits to main since this release
f21bb82

Upgrade note: this release is NOT a rolling upgrade. Restart the cluster
together, and make sure every node's MAREKVS_NODE_ID is below 1024.

Storage engine: ondaDB 0.2.0 -> 0.7.8
94 upstream commits. Fixes silent write loss (a compaction could discard a
table a concurrent flush had just installed, after that flush had reclaimed
its WAL); fixes bloom filters that skipped nothing on compacted tables;
removes the process-global mutex that kept point-read throughput flat from
1 to 8 threads. Also brings the lazy k-way memtable merge and range-bounded
iterators that design/09 and design/02 had been asking for.

The upgrade introduced one hazard, fixed in the same change: ondaDB >= 0.7
returns an invalid iterator when an SSTable reader fails to open, which a
bare valid-walk cannot distinguish from an empty range. Anti-entropy would
have published all-zero digests — identical to "this partition is empty".
Scans now report completion, and no caller may treat a short scan as data.

Correctness

  • The replication ring allocates its own sequence numbers. It used to stamp
    ops with ondaDB's commit_seq, but the hook does not run in seq order, and
    the ring's reader assumes a sorted buffer — an out-of-order op could be
    filtered out permanently and left to anti-entropy.
  • HINCRBY is a PN counter (T2-12): concurrent increments on different nodes
    all survive. HINCRBYFLOAT stays LWW by design.
  • List positions are node-salted (T2-13): concurrent cross-node pushes no
    longer collide and lose one.

Cluster

  • Cold purge after ownership loss (T2-9): reclaims the disk every scale event
    used to strand, fenced on a delay, matched anti-entropy rounds, a full
    Active owner set, and no active rejoin.
  • Mesh peer GC (T2-10): departed nodes stop being redialed forever.
  • Zone-aware placement (T2-11), opt-in via MAREKVS_ZONE_AWARE: spreads a
    partition's replicas across failure domains so one zone cannot hold every
    copy.
  • P0 mesh version/feature negotiation, which is what makes future format
    changes rolling.

Operator

  • Failures are visible: status conditions for metrics scrape, reconcile, PVC
    reclaim and rollout (T2-14).
  • Health-gated rollouts (T2-15): image changes walk one pod at a time, gated
    on underreplicated == 0, not merely on pod readiness.
  • Leader election over a Lease (T2-16): running two controller replicas is
    now safe.

Testing

  • The commit-hook contract canary that design/10 called for but which did not
    exist. It confirms exactly-once, whole-batch delivery — and disproved the
    "in commit order" clause of the documented contract.
  • Durability tests assert SyncMode::Interval from the persisted config and
    from real WAL syncs, with SyncMode::None as the negative control.
  • Fixed a ~50% flaky oneof-race test that had been comparing different
    inputs.

441 tests, no skips. Requires Rust 1.89.

Images

ghcr.io/yannick/marekvs:v0.3.0
ghcr.io/yannick/marekvs:v0.3
ghcr.io/yannick/marekvs:sha-f21bb82
ghcr.io/yannick/marekvs:latest
ghcr.io/yannick/marekvs:debug-v0.3.0
ghcr.io/yannick/marekvs:debug-v0.3
ghcr.io/yannick/marekvs:debug-sha-f21bb82
ghcr.io/yannick/marekvs:latest