Repository navigation
Immutable storage for mmap map index - #8828
Conversation
9727130 to
3704bf7
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR refactors deletion handling in mmap-backed map indexes. Instead of persisting runtime deletions through a Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 6/8 reviews remaining, refill in 14 minutes and 52 seconds.Comment |
Make the mmap map index immutable on disk, mirroring the change applied to the mmap numeric index in #8594 and the mmap text index in #8840.
MmapMapIndex no longer persists runtime deletions: BufferedUpdateBitSlice is replaced with an in-memory BitVec.
deleted.bin is now build-time only — it records the points whose payload was empty at build time. It joins values_to_points.bin, point_to_values.*, and mmap_field_index_config.json in immutable_files().
On reload, callers must re-supply the authoritative deletion mask via the new deleted_points: &BitSlice argument to MmapMapIndex::open / MapIndex::new_mmap / builder_mmap. The id-tracker is the source of
truth at runtime.
The reload merges the build-time empty-payload bits with the caller-provided mask via bitor_assign, after resizing to point_to_values.len() (defaulting missing trailing entries to live).
flusher() is now a no-op; remove_point() only updates the in-memory bitvec.
ram_usage_bytes() now reports the in-memory deletion bitvec plus point_to_values for the mmap variant.
Added type-level docs on MmapMapIndex and method-level docs on flusher / remove_point describing the deletion durability contract.