-
Notifications
You must be signed in to change notification settings - Fork 5.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
fix incorrect http range in SelectObjectContentHandler #11585
Merged
Merged
Conversation
This file contains 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
harshavardhana
requested changes
Feb 19, 2021
05c1765
to
3b25aa8
Compare
3b25aa8
to
8ef10d7
Compare
harshavardhana
approved these changes
Feb 19, 2021
Mint Automation
11585-8ef10d7/mint-compress-encrypt-dist-erasure.sh.log:
Deleting image on docker hub |
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.
Description
This commit fix the HTTP range calculated in
SelectObjectContentHandler
.Motivation and Context
Without this commit, there will be no functionality issue, select object content works just fine. The problem is that HTTP header
Range
is off by 1 byte. So, for example, when selecting parquet object, the reader need to request an object with start offset 0 and length 1024 Bytes. The expected range should bebytes=0-1023
, but getbytes=0-1024
instead. Which means it is requested 1025 Bytes.How to test this PR?
Run MinIO as S3 gateway and then select object content with parquet format. Then, inspect variable
length
here:minio/cmd/object-handlers.go
Line 194 in c70240b
and here:
minio/cmd/gateway/s3/gateway-s3.go
Line 398 in c70240b
The value must be the same.
Types of changes
Checklist:
commit-id
orPR #
here)