mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
e3a0495003907d2f6d323c077480bca3040034f5
Review of #134 r2 (one P2): duplicate volume/replica keys in one report were accepted. The health transition compared against the first prior match while every entry was stored, so repeating [healthy, unhealthy] for one key invented a replica_unhealthy event that did not describe the stored slot. The observation store now refuses an observation with a repeated slot key (ErrInvalidObservation) before any mutation, so no transition and no store change result; validateHeartbeat refuses it at the RPC with the offending indices. Distinct slots are unchanged. TestStatusFrontendsForAssignedVolume_DedupesRepeatedFacts ingested its fact through a heartbeat that repeated the slot; what it pins is the status dedupe over repeated replica IDs, so it now ingests the fact once. No production heartbeat repeats a slot (one slot per blockvolume process). Refs #128 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%