Repository navigation
test(global-index): verify concurrent queries through reader wrappers - #595
Conversation
There was a problem hiding this comment.
@lxy-9602, I left some comments for the failing clang-tidy check, the concurrency and executor contracts, and coverage of simultaneous queries. PTAL.
SteNicholas
left a comment
There was a problem hiding this comment.
A multi-file shard can still return an exception with file visits outstanding. The inline comments cover that lifetime issue, two ways the new tests can hang, and the concurrency guarantees the tests and public documentation expose.
|
Could you point me to the code change that implements “Also handle a null executor in full-text shard searches by evaluating the shards sequentially”? The null-executor fallback in UnionGlobalIndexReader appears to already exist in the base branch. |
When I addressed the review comments earlier, I removed it, and the PR description has been updated. Thanks! |
Purpose
Clarify the conditions under which a global index reader can be shared across query threads, and add regression coverage for concurrent queries through Union, LiveRow, and Offset wrappers.
Document supplier synchronization requirements and executor behavior.
Tests
API and Format
Clarifies public API documentation without changing API signatures, storage formats, or protocols.
Documentation
Document reader concurrency requirements, nested-executor deadlock risks, and the distinction between outer query executors and Bitmap/BTree private pools.
Generative AI tooling
Generated-by: OpenAI Codex (GPT-6)