generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
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
GCP InputStream in GCP actually readsAllBytes #440
Labels
type: bug
Something isn't working
Comments
There may be some autoclose foot-guns here, but I've implemented the equivalent of this, and seems to work for files of any size
|
alvarosanchez
added
bug
Something isn't working
type: bug
Something isn't working
and removed
bug
Something isn't working
labels
Apr 3, 2024
@eahrold thank you very much! Would you be willing to send a PR so that you get credit for the fix? |
eahrold
pushed a commit
to eahrold/micronaut-object-storage
that referenced
this issue
Apr 27, 2024
eahrold
pushed a commit
to eahrold/micronaut-object-storage
that referenced
this issue
Apr 27, 2024
eahrold
pushed a commit
to eahrold/micronaut-object-storage
that referenced
this issue
Apr 27, 2024
@alvarosanchez here you go, #467 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When fetching larger files, we are seeing
throwIfFatal detected a jvm fatal exception, which is thrown and logged below: java.lang.OutOfMemoryError: Java heap space
It looks like what's happening is that the underlying method used in objectstorage, is actually just pulling all bytes from the Blob into memory, and not creating a usable stream.
micronaut-object-storage/object-storage-gcp/src/main/java/io/micronaut/objectstorage/googlecloud/GoogleCloudStorageEntry.java
Lines 49 to 51 in e0ec2d9
The relevant stack.
What we've got under the hood is similar to this.
7.2. Download endpoint from https://guides.micronaut.io/latest/micronaut-object-storage-gcp-gradle-java.html
The text was updated successfully, but these errors were encountered: