release: v2.5.1 — HA cluster, failover watcher, dependency upgrades#229
Merged
caikpigosso merged 2 commits intomainfrom Mar 24, 2026
Merged
release: v2.5.1 — HA cluster, failover watcher, dependency upgrades#229caikpigosso merged 2 commits intomainfrom
caikpigosso merged 2 commits intomainfrom
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Features: - Add Raft leadership watcher (src/cluster/raft_watcher.rs) that bridges openraft consensus elections to HaManager role transitions, enabling automatic master/replica failover in Kubernetes clusters - Watcher uses zero-cost tokio::sync::watch subscription (no polling) - Leader address resolved from Raft state machine with K8s env var support (HOSTNAME, VECTORIZER_SERVICE_NAME, POD_IP) Bug fixes: - Fix snapshot spam on empty replicas: early-exit when .vecdb doesn't exist, downgrade "no data" errors to debug level in auto_save - Add exponential backoff (5s→60s cap) to replica reconnect, reducing log noise from ~12/min to ~1/min when master is unreachable - Add 5s TCP connection timeout to replica, replacing OS-level timeout (30-120s) for faster failure detection in Kubernetes Dependency upgrades (all Dependabot PRs resolved): - bincode 1.3→2.0.1 with codec wrapper module for wire-format compatibility - tonic 0.12→0.14.5, prost 0.13→0.14.3 (coordinated upgrade, eliminates duplicate crate versions), tonic-prost/tonic-prost-build added - uuid 1.19→1.22, nix 0.30→0.31, hyper-util 0.1.19→0.1.20 - tar, openssl, futures, tempfile, rustls (patch bumps via cargo update) - docker/metadata-action v5→v6 in CI workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
cargo test— 1,890 tests passed, 0 failurescargo clippy— 0 warningscargo fmt --check— formattedcargo build --release— builds successfully🤖 Generated with Claude Code