Repository navigation
Lucene: preserve throwable types in accelerated vector formats - #2515
Merged
rapids-bot[bot] merged 8 commits intoAug 28, 2026
Merged
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Author
|
/ok to test e3b67f1 |
Contributor
Author
|
/ok to test 358def4 |
shaunakkapur
marked this pull request as ready for review
August 27, 2026 23:08
shaunakkapur
marked this pull request as draft
August 28, 2026 02:01
shaunakkapur
marked this pull request as ready for review
August 28, 2026 02:12
imotov
reviewed
Aug 28, 2026
imotov
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me. Left one comment.
Utils.handleThrowable now returns RuntimeException so callers can write `throw Utils.handleThrowable(e)`, letting the compiler verify the catch block always completes abruptly. This removes the redundant `throw new AssertionError(...)` line flagged in review, while relying on existing assertThrows coverage to confirm exceptions are not swallowed. Signed-off-by: Shaunak Kapur <shaunakk@nvidia.com>
imotov
approved these changes
Aug 28, 2026
Signed-off-by: Shaunak Kapur <shaunakk@nvidia.com>
Signed-off-by: Shaunak Kapur <shaunakk@nvidia.com>
The GPUKnnFloatVectorQuery change is unrelated to this PR's scope (propagating Error subclasses instead of wrapping them). It addresses a separate pre-existing bug on main where the multi-partition GPU rewrite path bypasses Lucene's exact-search fallback for highly selective filters, which surfaces as an intermittent TestCuVSGaps failure on certain randomized seeds. Reverting it here per review feedback; tracked separately in its own issue so it can be reviewed on its own merits. Signed-off-by: Shaunak Kapur <shaunakk@nvidia.com>
Contributor
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the broad RuntimeException wrappers in fieldsWriter and fieldsReader across the plain, scalar quantized, and binary quantized accelerated vector formats with Utils.handleThrowable.
This preserves IOException, RuntimeException, and Error instances instead of discarding their type, cause, and stack information. It also documents and tests the shared Error propagation contract.
Add focused helper and vector format regression coverage. The call site tests verify that IOException and RuntimeException instances are propagated unchanged, while the helper test verifies exact Error identity.
Testing
The call site tests were also run against the previous wrappers and correctly failed for IOException and RuntimeException identity.
Closes #2474