mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
5187083fc6f58b7abb59835e19cd3800eec49880
QA round 6 finding: primary log silent on replication; can't
disambiguate 'peers=0 delivered' (timing gap) from 'peers=N delivered
but ship failed' (TCP/network). Pre-existing log discipline only
emits on the FAILURE branches:
- line 488: recording supersede (when fact.ReplicaID != self)
- line 502: UpdateReplicaSet failed
Add INFO logs on the success path so operators / hardware-test
harness can see what's actually being installed without -v / debug
flags:
blockvolume: volume v1 replication UpdateReplicaSet ok (gen=N,
peers=K): [r2@192.168.1.184:9221 ...]
blockvolume: volume v1 adopted as PRIMARY at r1@1 (EV=1)
Small log footprint (one line per fact emission, fact emissions
are rare). Production-acceptable verbosity. No behavior change.
Tests: cmd/blockvolume integration test still PASS (16.4s);
core/host/volume green.
Refs: QA round 6 — primary-fail.log silence.
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%