-
Notifications
You must be signed in to change notification settings - Fork 771
fix(store-gateway): run all index header bucket reads through GetRange interface #15024
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
Merged
francoposa
merged 11 commits into
main
from
francoposa/index-header-bucket-decbuf-get-range-reader
Apr 17, 2026
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1048679
fix: run all index header bucket reads through GetRange interface
francoposa 4d32ccb
split file decbuf factory to own file and use a const for len bytes
francoposa bb94521
clean up with comments and docstrings
francoposa 311a3f1
lint
francoposa 289ebe8
fix condition for calling ensureIndexHeaderOnDisk
francoposa 3911b2e
fixup test comments and formatting
francoposa 575d148
fix copy-past mistakes from scratch PR
francoposa 04c303a
Cursor feedback
francoposa 29346f6
Cursor feedback
francoposa 73ed6f5
PR feedback: fix resetReader func and unify func NewBucketBufReader p…
francoposa c91b282
Cursor feedback
francoposa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Unnecessary Attributes call when section length is cached
Medium Severity
NewDecbufAtCheckedcallsbf.bkt.Attributes()on every invocation, even when the section length is already cached insectionLenCache. On cache hit,attrsis only used for offset validation — themetaReadercreation that actually needsattrs.Sizeis skipped. This adds an unnecessary bucket metadata round-trip per cached read, undermining the PR's goal of reducing bucket operations.Reviewed by Cursor Bugbot for commit 29346f6. Configure here.
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.
Going to ignore this for now: