Skip to content

[UIO] Additional UniversalRead/Write usage simplifications - #8961

Merged
generall merged 8 commits into
devfrom
uio-simplifications
May 8, 2026
Merged

generall merged 8 commits into
devfrom
uio-simplifications

Conversation

@coszio

@coszio coszio commented May 8, 2026

Copy link
Copy Markdown
Contributor

Addresses a few extra simplifications after #8955.

Review tip: easy to review commit-by-commit

@coszio coszio added this to the Universal IO milestone May 8, 2026
@coszio
coszio requested review from ffuugoo, generall and xzfc May 8, 2026 16:08
@coderabbitai

coderabbitai Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c296c7bc-af22-4d13-bf19-fe823a2d12a0

📥 Commits

Reviewing files that changed from the base of the PR and between 6424433 and ad67a10.

📒 Files selected for processing (18)
  • lib/common/common/src/stored_bitslice.rs
  • lib/common/common/src/universal_io/disk_cache/mod.rs
  • lib/common/common/src/universal_io/io_uring/mod.rs
  • lib/common/common/src/universal_io/mmap.rs
  • lib/common/common/src/universal_io/read.rs
  • lib/common/common/src/universal_io/wrappers/read_only.rs
  • lib/common/common/src/universal_io/wrappers/wrapped_pipeline.rs
  • lib/gridstore/src/bitmask/gaps.rs
  • lib/gridstore/src/bitmask/mod.rs
  • lib/gridstore/src/tracker.rs
  • lib/segment/src/common/flags/bitvec_flags.rs
  • lib/segment/src/common/flags/buffered_dynamic_flags.rs
  • lib/segment/src/common/flags/dynamic_stored_flags.rs
  • lib/segment/src/common/flags/roaring_flags.rs
  • lib/segment/src/index/field_index/full_text_index/inverted_index/mmap_inverted_index/create_postings.rs
  • lib/segment/src/index/field_index/full_text_index/inverted_index/mmap_inverted_index/types.rs
  • lib/segment/src/index/field_index/full_text_index/inverted_index/mmap_inverted_index/uio_postings.rs
  • lib/segment/src/index/field_index/stored_point_to_values.rs

📝 Walkthrough

Walkthrough

This PR refactors storage type handling and trait constraints across Qdrant's I/O layer. It removes the 'static lifetime requirement from UniversalRead/UniversalReadPipeline trait bounds, simplifies storage constraints by removing BitmaskStorage and UioDynamicFlags marker traits in favor of direct UniversalWrite bounds, introduces TypedStorage wrapper patterns in StoredBitSlice and BitmaskGaps to encapsulate element types, and migrates serialized data structures (TrackerHeader, PostingsHeader, Header, MmapRange) from zerocopy to bytemuck derives while updating corresponding read/write call sites to use typed deserialization.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • qdrant/qdrant#8508: Introduces the TypedStorage wrapper pattern that this PR adopts across StoredBitSlice, BitmaskGaps, and other storage types.
  • qdrant/qdrant#8894: Makes parallel UniversalRead lifetime bound relaxation changes, removing 'static constraints across the same trait hierarchy.
  • qdrant/qdrant#8893: Refactors DynamicMmapFlags → DynamicStoredFlags and introduces StoredBitSlice/StoredStruct usage in related flag storage code.

Suggested reviewers

  • generall
  • ffuugoo
  • xzfc
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main objective of the changeset: removing 'static lifetime bounds and simplifying UniversalRead/Write trait constraints across multiple files.
Description check ✅ Passed The PR description is related to the changeset, referencing PR #8955 and indicating the changes are simplifications. It provides adequate context for reviewers.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch uio-simplifications

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@generall
generall merged commit 6599f54 into dev May 8, 2026
15 checks passed
@generall
generall deleted the uio-simplifications branch May 8, 2026 18:07
generall pushed a commit that referenced this pull request May 22, 2026
* bytemuck::Pod already implies 'static

* no supertraits

* regions gaps with TypedStorage

* StoredBitSlice with TypedStorage

* bytemuck for PostingsHeader

* bytemuck for TrackerHeader

* bytemuck for MmapRange

* bytemuck for stored_point_to_values::Header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants