Skip to content

v0.10.2

Latest

Choose a tag to compare

@drmingdrmer drmingdrmer released this 30 Nov 02:01
· 116 commits to main since this release

Highlights

  • Replication backs off even when a stream fails to open. Old uploads can no longer interfere with replacement streams. (#2559, 58cefd6e, a97992b7)
  • OpenRaft keeps heartbeats, votes, pre-votes, and leadership transfers in flight past their usual timeouts. This avoids a burst of HTTP/2 resets when a stalled peer resumes. (#2553, ed834034, 6ed1efc7)
  • WriteOption::expect_last_log_id() rejects a write or batch without appending anything if the leader’s last log ID doesn’t match. (242b0329)
  • Raft::initialize() waits for the initial membership log to flush. A skipped snapshot is acknowledged only after its log prefix is durable. (c9a9937b, 18ee3d1f, 748e4557)
  • Linearizable reads no longer get stuck waiting for an old log index after a leader change. (665f2287)
  • With runtime-stats off, each node saves about 33.5 KiB in histogram allocations. (#2456, d698b3a5)
  • The raft-kv-memstore-dedup example shows how to retry writes with unknown outcomes using request IDs. (ca32e84d)

Upgrading from v0.10.1

  • Raft::new() and Raft::build() now return RaftError<C, ConfigError> instead of Fatal<C>. (fe66a574)
  • Use a positive heartbeat interval. Set enable_heartbeat = false to disable heartbeats. Snapshot chunk sizes, automatic snapshot thresholds, and log-stage capacities must also be positive. Channel sizes must fit the runtime’s supported range. (4251c1c2, 67f4b902, fe66a574)
  • Custom transports must detect stalled RPCs. For HTTP/2, prefer connection keepalives. End the stream_append() response stream once the input closes and all outstanding requests finish. (ed834034, 428f99cb)
  • Custom Instant implementations need checked_add() and checked_sub(). (621254b7)
  • Import the v1 AppendEntriesResponse from openraft_legacy::network_v1. (#2401, 1f3014d9)
  • Construct log IDs and votes directly. (b946bea7, ae7a4509, d0e9e1bc)
  • Remove set_log_id() from custom RaftEntry implementations and supply the ID at construction. Replace MessageSummary with Display. (1799ae16, 6950e72f)

Release PRs: reviewed changes #2567, version bump #2570, changelog #2571.

Detailed changelog and migration tips · All changes since v0.10.1