Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a238bc1cbc
ℹ️ 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".
There was a problem hiding this comment.
More details
Timeout retries now execute inside debounced work, allowing fresh backend calls after a timeout. The completed static review found no reportable defects in cache ordering, streaming, or migrated callers.
🤖 Bits Code Review · Commit a238bc1
94d1699 to
40d3bee
Compare
There was a problem hiding this comment.
More details
Static review identified no reportable defects in cache ordering, retry placement, stream sharing, memory reservations, or migrated callers. Runtime behavior was not exercised.
🤖 Bits Code Review · Commit 40d3bee
40d3bee to
1586c21
Compare
There was a problem hiding this comment.
More details
Timeout retries now execute inside debounced work, allowing fresh backend calls instead of rejoining a stalled request. No reportable static concern remained; runtime behavior was not exercised.
🤖 Bits Code Review · Commit 1586c21
1586c21 to
48c35c6
Compare
There was a problem hiding this comment.
More details
Static review found the consolidated read pipeline preserves the relevant cache and memory-reservation behavior. Runtime behavior was not tested.
🤖 Bits Code Review · Commit 48c35c6
48c35c6 to
a24960d
Compare
There was a problem hiding this comment.
More details
Static tracing of the read, cache, streaming, and retry paths identified no actionable defects. The human PR discussion contained no comments or reviews requiring reconciliation.
🤖 Bits Code Review · Commit a24960d
a24960d to
a50c40c
Compare
There was a problem hiding this comment.
More details
Timeout retries now run inside debounced work, allowing fresh backend requests instead of rejoining a stalled read. The completed static review identified no reportable defect; runtime behavior was not exercised.
🤖 Bits Code Review · Commit a50c40c
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a50c40c90d
ℹ️ 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".
| #[cfg(test)] | ||
| mod tests { |
There was a problem hiding this comment.
Split the new directory module below the 500-line limit
The previously reported standalone test file has been removed, but the tests are now inlined here and split_directory.rs is a newly added, 587-line file. This violates the root AGENTS.md requirement to keep new files under 500 lines; extracting this test module into a separate file would bring both files below the limit without removing coverage.
AGENTS.md reference: AGENTS.md:L136-L136
Useful? React with 👍 / 👎.
Summary
Replaces the dynamic
DirectoryandStoragewrapper stack on the search read path with three concrete types (SplitDirectory,SplitBundle, andSplitStorageReader) where every layer has a fixed position and caches no longer implementStorage.Before (up to 10 nested
Directory/Storagewrappers)Problems with this stack:
Storage(orDirectory), forcing them to forward or stub unrelated write, delete, and list methods.TimeoutAndRetryStoragesat aboveDebouncedStorage, so a timed-out retry re-joined the same stalledSharedfuture instead of issuing a fresh backend request.DebouncedStoragesat belowFeuerStorageeven thoughfeueralready deduplicates buffered misses.DebouncedStoragewas hidden inside storage factories; caches and counters were stacked ad-hoc at call sites).After (3 concrete types with clear API boundaries)
API boundaries:
Storage: object/file storage backends only (S3, GCS, Azure, LocalFile, RAM,PrefixStorage). Caches, debouncing, retries, counters, and split-bundle offset mapping no longer implementStorage.SplitStorageReader: reads byte slices and coalesced range streams from immutable split objects with fixed ordering acrossstorage_cache, range coalescing,split_cache,StorageDebouncer,StorageTimeoutPolicy, andDownloadCounters.SplitBundle: translates logical bundled file paths into byte ranges onSplitStorageReader(used directly bySplitDirectory,list_fields, and split recovery).SplitDirectory: the TantivyDirectoryimplementation for reading splits, owning hotcache lookup, the optional per-splitShortLivedCache, and forwardingstream_ranges(bypassinghotcacheandshort_lived_cache).Wrapper Replacement Map
flowchart LR subgraph Before HotDirectory CachingDirectory StorageDirectory BundleStorage FeuerStorage SplitCacheBackingStorage TimeoutAndRetryStorage CountingStorage DebouncedStorage end subgraph After SplitDirectory SplitBundle SplitStorageReader StorageDebouncer end HotDirectory --> SplitDirectory CachingDirectory --> SplitDirectory StorageDirectory --> SplitDirectory BundleStorage --> SplitBundle FeuerStorage --> SplitStorageReader SplitCacheBackingStorage --> SplitStorageReader TimeoutAndRetryStorage --> SplitStorageReader CountingStorage --> SplitStorageReader DebouncedStorage --> StorageDebouncerAlso removed unused legacy code:
quickwit-storage/src/cache/,DebugProxyDirectory, 7 deadquickwit_cache_virtual_*metrics, and unused crate dependencies (mini-moka,quick_cache,rustc-hash,proptest,time).User Impact & Breaking Changes
quickwit_cache_virtual_*metrics; updatedquickwit_storage_object_storage_gets_totaldescription.BundleStorage,CountingStorage,TimeoutAndRetryStorage,DebouncedStorage,AsyncDebouncer,ByteRangeCache,MemorySizedCache,StorageCache,MockStorageCache,wrap_storage_with_cache, andwrap_storage_with_storage_cachefromquickwit-storage, andHotDirectory,CachingDirectory,StorageDirectory,DebugProxyDirectory, andReadOperationfromquickwit-directories.CacheConfigkeeps existing fields deserializable, so existing node configs remain valid.Author Checklist
Storage, static pipeline disallowing invalid layer orderings,hotcachealways consulted first forread_bytes/read_bytes_async(bypassed forstream_ranges), and explicit component scopingstorage_cache(feuer) andsplit_cache(SearchSplitCache) as separate fields rather than a combined cache enum, without adding config mutual-exclusion checksStorageDebouncerand madeDownloadCountersunconditional onSplitStorageReaderstream_ranges) fromSplitDirectoryintoSplitStorageReaderright abovedebouncerstorage_cachelookups instream_rangesto< 10ranges and sanity-checked 1M-range iterators for zero cache lookups and no eager bufferingByteRangeCache/MemoryReserverrole (SplitWarmupMemory) and confirmedCacheConfigdeserialization compatibility while removing dead metrics and methodsReadDebouncer,DebugProxyDirectory,SplitBundle::exists, legacycache/module, unused deps; flattenedwrite_hotcache; madeSplitBundleArc-backed; foldedSplitDirectorytests intosplit_directory.rs)Verification
make fmtmake metrics-inventoryRUSTDOCFLAGS="-Dwarnings -Arustdoc::private_intra_doc_links" cargo doc --no-depscargo check --workspace --testscargo clippy -p quickwit-config -p quickwit-storage -p quickwit-directories -p quickwit-search -p quickwit-cli -p quickwit-indexing --tests -- -D warningscargo nextest run -p quickwit-config -p quickwit-directories -p quickwit-search— 477 passedcargo nextest run -p quickwit-storage --features testsuite,azure,gcs— 123 passedcargo nextest run -p quickwit-indexing split_recovery_tests— 2 passedmake test-all/ REST API tests) run in CI.