Skip to content
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

fix: ensure that 'block_size' parameter is properly propagated in the ObjectStore #3403

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

vjc578db
Copy link
Contributor

@vjc578db vjc578db commented Jan 21, 2025

Previously, setting a block_size parameter did not change the range coalescing being done in FileScheduler's submit_request function. This was because the FileScheduler was using the block_size parameter in the underlying ObjectStore, but that parameter was not being properly propagated in the configure_store method.

This change keeps the same defaults but always uses the parameter value if it is set.

Verified via unit tests and profiling to determine increasing block size now does actually decrease the number of get_range queries.

Copy link

ACTION NEEDED
Lance follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

For details on the error please inspect the "PR Title Check" action.

@vjc578db vjc578db changed the title Ensure that 'block_size' parameter is properly propagated in the ObjectStore's configure_store function fix: Ensure that 'block_size' parameter is properly propagated in the ObjectStore's configure_store function Jan 21, 2025
@github-actions github-actions bot added the bug Something isn't working label Jan 21, 2025
Copy link
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job catching this issue. I have a minor change needed on the unit test, but otherwise this looks great.

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 95.23810% with 2 lines in your changes missing coverage. Please review.

Project coverage is 78.73%. Comparing base (7f60aa0) to head (5684cfb).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
rust/lance-io/src/object_store.rs 95.23% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3403      +/-   ##
==========================================
+ Coverage   78.72%   78.73%   +0.01%     
==========================================
  Files         250      250              
  Lines       90879    90915      +36     
  Branches    90879    90915      +36     
==========================================
+ Hits        71540    71580      +40     
+ Misses      16397    16383      -14     
- Partials     2942     2952      +10     
Flag Coverage Δ
unittests 78.73% <95.23%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vjc578db vjc578db changed the title fix: Ensure that 'block_size' parameter is properly propagated in the ObjectStore's configure_store function fix: Ensure that 'block_size' parameter is properly propagated in the ObjectStore Jan 22, 2025
@vjc578db vjc578db changed the title fix: Ensure that 'block_size' parameter is properly propagated in the ObjectStore fix: ensure that 'block_size' parameter is properly propagated in the ObjectStore Jan 22, 2025
@vjc578db vjc578db requested a review from wjones127 January 22, 2025 22:38
@vjc578db
Copy link
Contributor Author

@wjones127 It looks like it is complaining about not being able to update the lock file (https://github.com/lancedb/lance/actions/runs/12918084538/job/36026972853?pr=3403). Should I be including an updated lock file in this change? I didn't have to do it locally for the tests to pass. If so, should I be running cargo update (which is going to update a lot), or something else?

@wjones127
Copy link
Contributor

@wjones127 It looks like it is complaining about not being able to update the lock file (https://github.com/lancedb/lance/actions/runs/12918084538/job/36026972853?pr=3403). Should I be including an updated lock file in this change? I didn't have to do it locally for the tests to pass. If so, should I be running cargo update (which is going to update a lot), or something else?

This happened because you changed the Cargo.toml file. This should have generated changes in the Cargo.lock files as well, and you should check them in.

You should NOT run cargo update. Just run cargo check in /rust and /python and then check in the updated Cargo.lock files.

@vjc578db vjc578db requested a review from wjones127 January 23, 2025 01:45
@vjc578db
Copy link
Contributor Author

@wjones127 It looks like it is complaining about not being able to update the lock file (https://github.com/lancedb/lance/actions/runs/12918084538/job/36026972853?pr=3403). Should I be including an updated lock file in this change? I didn't have to do it locally for the tests to pass. If so, should I be running cargo update (which is going to update a lot), or something else?

This happened because you changed the Cargo.toml file. This should have generated changes in the Cargo.lock files as well, and you should check them in.

You should NOT run cargo update. Just run cargo check in /rust and /python and then check in the updated Cargo.lock files.

Added the Cargo.lock file for the lance-io directory. When I ran cargo check in the python/ directory, there were no updates.

@wjones127 wjones127 merged commit 3f26e60 into lancedb:main Jan 23, 2025
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants