mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
f99d5718a1fd5821c183f40276e315cdd3ea1920
Per port audit + QA Discovery Bridge scope (separate cycle from BUG-001). V2 fabric.go:41 extracts KATO from Connect CDW12 at Connect time; V3's ckpt 7 session rewrite dropped this and relied solely on Set Features 0x0F. Typical Linux hosts set KATO in Connect and do NOT issue a follow-up Set Features — so ctrl.kato was effectively zero on the target side for real hosts. ## Change session.go handleAdminConnect: after allocating the controller, call ctrl.setKATO(req.capsule.D12). Unit matches V2 (uint32 round-trip, no ms↔100ms conversion). QA constraint #2 preserved: store-only, no timer armed. 6 LOC in session.go plus log-line update. ## Test client connectOptions gains a KATO uint32 field; dialAndConnectOpts plumbs it into admin Connect's CDW12. ## Tests (new, all GREEN) - TestT2V2Port_NVMe_Connect_KATO_CDW12_Persisted — Connect with KATO=12000, assert Get Features 0x0F returns 12000 - TestT2V2Port_NVMe_Connect_KATO_Zero_Accepted — KATO=0 valid, round-trips as 0 - TestT2V2Port_NVMe_Connect_KATO_OverriddenBySetFeatures — V2 precedence: Connect stores KATO, later Set Features 0x0F overwrites (last-write-wins) ## Regression go test ./core/frontend/nvme/ -count=1 → ok 32.0s Existing 11b TestT2Batch11b_SetFeatures_KeepAliveTimer_RoundTrips stays green (same storage cell). ## References sw-block/design/bugs/003_nvme_kato_connect_cdw12_ignored.md sw-block/design/v3-phase-15-t2-nvme-port-audit.md (M-category fabric.go gap) V2 source: weed/storage/blockvol/nvme/fabric.go:41, :244 ## Exit criteria (from BUG-003 §8) - [x] Connect CDW12 plumbed into ctrl.kato - [x] New test green; 11b KATO round-trip test stays green - [ ] Ledger row PCDD-NVME-FABRIC-CONNECT-KATO-001 promoted ACTIVE (QA, after m01 verification) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%