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

gRPC Read requests are always returning the requested object's entire data #393

Open
isaiahgama opened this issue Aug 10, 2022 · 0 comments
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@isaiahgama
Copy link

There are two different scenarios where I have encountered this.

For context, projects/_/buckets/testbucket/testobject holds 1MiB of random chars as data.

Ex 1:
Request sent:
bucket: "projects/_/buckets/testbucket"
object: "testobject"
generation: 1660167007378
read_offset: 1048575
read_limit: 1048576

returned status = "status:OK"

Expected behavior: Read 1 byte then return an out_of_range error.
Actual behavior: Entire 1MiB object is read and return an OK status.

Ex 2:
Request sent:
bucket: "projects/_/buckets/testbucket"
object: "testobject"
generation: 1660170260851
read_limit: 2048

returned status = "status:OK"

Expected behavior: Read the first 2KiB of the object and return an OK status.
Actual behavior: Entire 1MiB object is read and return an OK status.

@isaiahgama isaiahgama added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant