Repository navigation
[MOD-17393] NotOptimized: suspend/resume - #10891
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 304adcc2f9
ℹ️ 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10891 +/- ##
==========================================
- Coverage 83.16% 82.22% -0.94%
==========================================
Files 611 635 +24
Lines 81176 82351 +1175
Branches 36388 37563 +1175
==========================================
+ Hits 67512 67716 +204
- Misses 13317 14291 +974
+ 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:
|
304adcc to
412d266
Compare
|



Describe the changes in the pull request
NotOptimized(theNOTiterator, wildcard plus excluded child) can only be revalidated in place, so it cannot be held while the index spec read lock is dropped.RQEIteratorBoxed::suspend/RQESuspendedIterator::resume— the boxed iterator is weakened to aSuspendedform, its wildcard and its child transitioned inside their own slots, and re-narrowed on resume in the same allocation. The legacyrevalidateis left in place and unchanged.Which additional issues this PR fixes
Main objects this PR modified
RawNotOptimized<Rf, W, I, TC>— theRef-mode-parametrized form, with theconstlayout-invariant proof that pairs its active and suspended instantiations.NotOptimized::suspend— transitions both the wildcard slot and the child slot in place, routed through the trait so a type-erased child swaps its vtable.FreeSuspendedShell— drop guard that tears down the half-transitioned shell when one of the two children aborts or errors mid-resume, so nothing gets re-narrowed onto a consumed child.resume's status combination: how the wildcard's and the child's outcomes fold into oneResumeOutcome, and the re-scan that finds the next non-excluded document when either moved.tests/integration/not_optimized.rs— the resume matrix mirrors the existing revalidate matrix case for case, plus box-address preservation and type-erased children.Mark if applicable
Release Notes