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

Handle files over 2GB #1065

Merged
merged 2 commits into from
Jun 21, 2016
Merged

Conversation

jean-philippe-martin
Copy link

@jean-philippe-martin jean-philippe-martin commented Jun 20, 2016

ParallelCountBytes fails for files over 2GB. It turns out that's because the position is stored internally as an int instead of a long in gcloud-java-storage. This CL fixes this. Once we merge into master, it'll solve the same problem for master.

cc: @jart

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 20, 2016
@@ -467,10 +467,13 @@ public RpcBatch createBatch() {
.setIfMetagenerationNotMatch(IF_METAGENERATION_NOT_MATCH.getLong(options))
.setIfGenerationMatch(IF_GENERATION_MATCH.getLong(options))
.setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
if (position<0) {

This comment was marked as spam.

This comment was marked as spam.

@mziccard
Copy link
Contributor

Nice catch, see one minor comment. I wonder whether we should merge this fix into master so that we don't have to wait for the bigger gcs-nio to be merged in.

@jean-philippe-martin
Copy link
Author

Tests are green. Are we OK to merge this pull request?

@mziccard mziccard merged commit 576c763 into googleapis:gcs-nio Jun 21, 2016
@jean-philippe-martin
Copy link
Author

Thank you!

@jean-philippe-martin jean-philippe-martin deleted the no_eom branch June 21, 2016 17:39
mziccard pushed a commit to mziccard/gcloud-java that referenced this pull request Jun 29, 2016
* Handle files over 2GB

* Use Guava's checkArgument
mziccard pushed a commit to mziccard/gcloud-java that referenced this pull request Jun 30, 2016
* Handle files over 2GB

* Use Guava's checkArgument
suztomo pushed a commit that referenced this pull request Feb 1, 2023
#1065)

* chore: copy functionality from io.grpc.internal.SharedResourceHolder

Included related classes and test file. Tests were adapted to use an
easymock mock

* fix: remove grpc-core from deps

* fix: add used undeclared dependency jsr305

* fix: add copy explanation comments, remove `@ThreadSafe` and related dependency

* Update google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/LogExceptionRunnable.java

Co-authored-by: Mike Eltsufin <[email protected]>

* Update google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/SharedResourceHolder.java

Co-authored-by: Mike Eltsufin <[email protected]>

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Mike Eltsufin <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants