mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
df35d07e988c0d7523ffc482fd02fdfe42446781
smartwal isn't in core/storage/contract_test.go's implementation
matrix (intentional — the experimental subpackage stays
self-contained per its own test header), so the §6.10 BASE bypass
contract was unverified at the smartwal-named level after
055fd46. This test mirrors TestContract_WriteExtentDirect against
the smartwal substrate directly.
Asserts:
- WriteExtentDirect succeeds, Read returns bytes (smartwal reads
always pull from extent — the ring is not consulted)
- Frontier (H, nextLSN) NOT advanced (BASE has no LSN; ring NOT
touched)
- Subsequent ApplyEntry shadows correctly via writeAt's normal
extent overwrite + ring append
- Substrate-level: WriteExtentDirect after ApplyEntry IS allowed
to overwrite — pins that bitmap arbitration is the receiver's
job, not the substrate's. Prevents a future "let's silently
dedupe at substrate" change from quietly subverting §6.10.
Refs: v3-recovery-algorithm-consensus.md §6.10 (INV-RECV-BITMAP-CORE);
mini-plan §11.8 receipt for 055fd46; closes the smartwal coverage
gap noted in the SW status report.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%