-
Couldn't load subscription status.
- Fork 63
fix: fix split condition calculation error #912
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
Conversation
Signed-off-by: MrCroxx <[email protected]>
Signed-off-by: MrCroxx <[email protected]>
Signed-off-by: MrCroxx <[email protected]>
- Fix blob/region split condition calculation error. - Add ut for the corner case. - Refine splitter code. - Fix direct fs error log. Signed-off-by: MrCroxx <[email protected]>
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
Signed-off-by: MrCroxx <[email protected]>
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.
Pull Request Overview
This PR fixes a blob/region split condition calculation error and refines the logging and splitting logic while adding tests for a corner case.
- Fixes the calculation error by updating how blob and region boundaries are computed.
- Enhances logging by including a flusher identifier across modules.
- Refines the splitter algorithm and adjusts error handling in the direct file system module.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| foyer-storage/src/large/generic.rs | Passes a flusher id to the asynchronous block and updates flusher invocation. |
| foyer-storage/src/large/flusher.rs | Integrates an id parameter into the flusher constructor and logging entries. |
| foyer-storage/src/large/buffer.rs | Refines the blob/region splitting logic and adjusts buffer handling. |
| foyer-storage/src/device/direct_fs.rs | Revises the capacity check and error logging for IO range validation. |
Comments suppressed due to low confidence (1)
foyer-storage/src/device/direct_fs.rs:104
- The variable 'e' is used in the error log and for returning an error but is not defined in this context. Define an appropriate error value or update the check to avoid referencing an undefined variable.
tracing::error!(region, ?e, "[direct fs]: io range out of region capacity");
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fix foyer large object disk cache bug by bumping to the latest version. - FYI: foyer-rs/foyer#912 ## Test plan *How are these changes tested?* - [x] 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)?* Signed-off-by: MrCroxx <[email protected]>
…core#4107) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fix foyer large object disk cache bug by bumping to the latest version. - FYI: foyer-rs/foyer#912 ## Test plan *How are these changes tested?* - [x] 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)?* Signed-off-by: MrCroxx <[email protected]>
What's changed and what's your intention?
Checklist
make all(ormake fastinstead if the old tests are not modified) in my local environment.Related issues or PRs (optional)
close #905
risingwavelabs/risingwave#21116
risingwavelabs/risingwave#21157