-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLN] Propagate errors for block get/fork #2778
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
impl ChromaError for BlockLoadError { | ||
fn code(&self) -> ErrorCodes { | ||
match self { | ||
BlockLoadError::IOError(_) => ErrorCodes::Internal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self and others: Almost all of our codebase is littered with ErrorCodes::Internal, maybe evaluate if they can convey more than that?
@@ -319,11 +354,14 @@ impl<'me, K: ArrowReadableKey<'me> + Into<KeyWrapper>, V: ArrowReadableValue<'me | |||
let target_block_id = self.sparse_index.get_target_block_id(&search_key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a task in tracker to remove Box<dyn ChromaError>
and instead add specific error types
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - ... - New functionality - ... ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
Description of changes
Summarize the changes made by this PR.
This PR also contains stacked PRs as part of mereg
#2780
#2793
Test plan
How are these changes tested?
Non functional changes. Existing tests. We should add tests for these cases
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
None