objectfs: remove MutationRecord, legacy metadata JSON, and use table rows in-memory #169
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 178 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.310
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #169"
general
weight: 0.35
justinsb
Removes
MutationRecord, deprecated metadata structures (VolumeMetadata,FileMetadata,MetadataFileName,CachedDir,DirEntry), and refactorsCachedInodeto usepb.Inodetable rows directly as the in-memory representation.Summary of Changes:
1. Remove
MutationRecord&MutationType: Deleted fromproto/objectfs.proto, removedmutation.go, and removed dead replay/apply functions (ReplayRecords,ReplayClientRecords,ApplyRecordLocked).2. Use Table Rows In-Memory:
- Refactored
CachedInodeto holdRow pb.Inodealongside transient write state (Chunks,InlineData,StagedChunks,DirtyChunks,RedirectURL,Data,IsDirty).- Deleted Go
DirEntrystruct andCachedDirmap; directory entries and listings readpb.DirEntryrows directly.3. Delete Write-Only Legacy Metadata JSON:
- Removed
VolumeMetadata,FileMetadata,MetadataFileName,deletedPathsSinceFlush,lastFlushedMetadata, and per-path backend uploads during snapshotting.4. Single Converter per Boundary:
- Centralized conversion to
*pb.EntryAttrviatoEntryAttr.- Centralized conversion to
erofs.NodeviainodeToErofsNode.5. Tests & Line Counts:
- Updated tests to verify snapshot creation without uploading metadata JSON.
-
pkg/objectfs/controller/volume.goline count decreased from 5456 to 3998 lines (net reduction of 1458 lines).Fixes #166