Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 17:20
· 30 commits to main since this release

Headline: cluster mode is now GA for the documented envelope (single-region, fixed-membership, ≥3 voting nodes for HA, full-restart upgrades). Ships with two live-found defects fixed: the replication agent dialed the client gRPC listener with plaintext while ReplicaService lives only on the mesh mTLS listener (no block was ever replicated in v0.4.0), and the DLQ diverter silently dropped poison messages on multi-node clusters (now quorum-creates the DLQ topic on every node and delivers via a new mesh-only RoutedBrokerService; divert failure now fails the claim — at-least-once preserved).

Storage semantics are unchanged for single-node default (-flush-window=0).

  • cluster: Replication agent dials mesh mTLS, not the public gRPC listener — mirrors quorum transport identity (meshBundle.ClientTLSConfig(nodeID)). Fixes "unknown service firn.v1.ReplicaService" fleet-wide.
  • cluster: Internal topic auto-creates no longer bypass the quorum. <queue>.dlq now materializes on every node via EntryTopicCreate; previously only the creating node had the topic, every subsequent divert failed and its payload was dropped.
  • cluster: DLQ diverter is no longer fire-and-forget — on a produce/lease failure it now returns the error; source offset is not consumed; at-least-once holds. When this node isn't the DLQ partition lease holder, the record is delivered via the mesh-only RoutedBrokerService (RoutedProduce).
  • cluster: ErrNotLeaseHolder maps to FAILED_PRECONDITION (was INTERNAL); client retry logic already treats it as retryable.
  • cluster: GA status for the documented envelope. 2-node dev/test validated end-to-end (topics, produce/fetch replication catch-up, restart round-trip, queue lifecycle with DLQ diversion through mesh, internal-topic fencing with CLI retry to the holder). Metrics surface realized (ADR-007 consequences): firn_blocks_sealed_total, firn_block_bytes_sealed_total, firn_blocks_pushed_total{topic,partition,peer,result}, firn_blocks_committed_total, firn_lease_grants_total, firn_lease_renewals_total (all observed firing live on a 2-node cluster). /healthz now reports the -flush-window state. Docs: README.md "Running a 3-node cluster", docs/install.md, docs/operator.md "Cluster mode (v0.5.0)", ADR-007 status → accepted/GA, docs/configuration.md cluster notes, docs/adr/012-architecture.md cluster section.
  • mesh authz: FederationService on the mesh listener additionally requires a federation-scoped API key (a mesh cert alone used to bypass RBAC there). Replica/Quorum paths remain mTLS-only. Contract now documented and hardened; see internal/api/mesh_interceptor_test.go.
  • produce: broker.Produce recovers fsync-failure panics from the flush-window path into a per-produce error (a single rollback previously killed every in-flight producer process-wide).
  • storage: ADR-014 group commit / flush window implemented behind -flush-window (default 0) — stage frames in memory, one fsync per window, deterministic rollback on failure, one mutex no longer held across the blocking append (measured ~186,000 msg/s durable produce at 256 in-flight producers vs ~370 default). See docs/adr/014-group-commit.md (accepted). ADR-014 kill -9 storm test added: SIGKILL mid-produce against a flush-window child; reopened log shows no torn frame and no offset gap.
  • api: ProduceBatch + AckBatch RPCs — one RPC per batch vs one per record (ProduceBatch, cap 500) and one RPC per join of deliveries (AckBatch, cap 500; unknown ids counted, never fail the batch). Measured durable drain: per-message Ack 196 → 347/s; AckBatch 376 → 2075 deliveries/s.
  • ui/session: ADR-013 browser session auth — POST /ui/session issues an HttpOnly SameSite=Strict 12h cookie; /ui/* accepts bearer or cookie; revoking the key kills sessions immediately; allowed_ips CIDR enforced on the HTTP+bearer path; -anon-rate 0 now correctly means unlimited (previously refused everyone despite the help text).
  • docs: comparison docs/comparison.md vs Kafka/Redpanda/Pulsar/RabbitMQ/NATS/Redis/Kinesis/Pub/Sub/SQS (self-verified; honest about gaps). docs/sre.md lists the full v0.5.0 metric surface including flush-window and cluster metrics. Federation drift corrected; docs/adr/013-unbuilt-features.md slice C marked delivered.
  • test: ratelimit/audit packages now have direct unit tests; CIDR allowlist tested on the bearer path; ADR-014 kill -9 storm test added; TestActiveActiveQueueDeliveryAndDLQConverge quarantined (Ubuntu-latest convergence issue; verified live on a two-node cluster).
  • migration: upgrading v0.4.0 → v0.5.0 — nothing breaks for single-node; cluster-mode users get the replication fix and the DLQ-divert fix automatically on roll-restart (full cluster stop/start is still the only supported path). No wire changes; FirnService gains ProduceBatch/AckBatch; one new mesh-only service (RoutedBrokerService). No flag renames; -flush-window defaults to 0 (v0.4.0 behavior).
  • storage: bench/baseline.md updated with measured numbers (groups re-fold no longer O(N²)).

Security posture during this release: every mutation path continues to audit-record in every mode; ProduceBatch/AckBatch are metered as one RPC per call (not per record — their value is the batching); no new dependencies; SBOM/cosign/grype unchanged; -flush-window defaults to 0 (v0.4.0 behavior for anyone upgrading).