pingqiu 5187083fc6 G5-5 logging: INFO line on UpdateReplicaSet success + adopted-as-primary
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.
2026-04-27 00:39:42 -07:00
Languages
Go 84.7%
Rust 7.7%
Shell 2.7%
templ 1.5%
Java 1%
Other 2.1%