Repository navigation
[MOD-17682] NumericIteratorVariant: suspend/resume - #10894
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb024fd314
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10894 +/- ##
==========================================
- Coverage 83.16% 82.26% -0.91%
==========================================
Files 606 635 +29
Lines 80987 82411 +1424
Branches 36248 37623 +1375
==========================================
+ Hits 67350 67792 +442
- Misses 13290 14275 +985
+ Partials 347 344 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
bb024fd to
f9bbf99
Compare
|



Describe the changes in the pull request
RQEIteratorBoxed::suspend/RQESuspendedIterator::resume. The enum is re-shaped into aRef-mode-parametrizedRawNumericIteratorVariant, so suspending is a layout-preserving reinterpretation of the same allocation rather than a rebuild, with each arm's inner inverted-index reader transitioned in place. The legacyrevalidateis unchanged.Which additional issues this PR fixes
Main objects this PR modified
RawNumericIteratorVariant<'query, Rf>plus theNumericIteratorVariant/NumericIteratorVariantSuspendedaliases — the enum's active and suspended forms, with the layout proof (and anIsSamewitness) that keeps the three arms in lockstep.suspend/resumeon the variant — reuses the heap allocation so external borrows into the iterator's interior stay valid, and delegates the abort decision to each arm's inner reader.Movedwhen the current document was collected,Okotherwise — this is where the arms could most easily drift apart.tests/integration/inverted_index/numeric.rs— all three scenarios spelled out once per arm against a realNumericIndex: the round trip (including one taken mid-read), the range-tree-modified abort, and the current-document-deletedMoved. The filtered and geoMovedcases deliberately put a document the filter rejects in the re-seek's path, so they exerciseFilterNumericReader/FilterGeoReader's reject-and-keep-goingseek_recordloop — a fall-through the unfiltered reader does not have, and which had no revalidation coverage on either the resume or the legacy path.Mark if applicable
Release Notes