-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Downloading a big Multipart file on resteasy-reactive
is throwing an OutOfMemoryError
on Upstream
#28920
Milestone
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
pjgg
changed the title
Downloading a big Multipart file on
Downloading a big Multipart file on Oct 29, 2022
resteasy-reactive
is throwing a OutOfMemoryError
on Upstreamresteasy-reactive
is throwing an OutOfMemoryError
on Upstream
3 tasks
cc @Sgitario |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Oct 31, 2022
Before, we were using a ByteArrayOutputStream because some message writers are closing the original output stream when writing the entity (like JSON). The problem is that this approach needs the double of space (keeping the data in the bytearray output stream and then copy the data to the original output stream). With these changes, we are proxying the original output stream and preventing the message writers to not close the output stream (this was already being used in the JsonbMessageBodyWriter). Fix quarkusio#28920
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Oct 31, 2022
Before, we were using a ByteArrayOutputStream because some message writers are closing the original output stream when writing the entity (like JSON). The problem is that this approach needs the double of space (keeping the data in the bytearray output stream and then copy the data to the original output stream). With these changes, we are proxying the original output stream and preventing the message writers to not close the output stream (this was already being used in the JsonbMessageBodyWriter). Fix quarkusio#28920 (cherry picked from commit 25722b7)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Oct 31, 2022
Before, we were using a ByteArrayOutputStream because some message writers are closing the original output stream when writing the entity (like JSON). The problem is that this approach needs the double of space (keeping the data in the bytearray output stream and then copy the data to the original output stream). With these changes, we are proxying the original output stream and preventing the message writers to not close the output stream (this was already being used in the JsonbMessageBodyWriter). Fix quarkusio#28920 (cherry picked from commit 25722b7)
zakkak
pushed a commit
to zakkak/quarkus
that referenced
this issue
Nov 15, 2022
Before, we were using a ByteArrayOutputStream because some message writers are closing the original output stream when writing the entity (like JSON). The problem is that this approach needs the double of space (keeping the data in the bytearray output stream and then copy the data to the original output stream). With these changes, we are proxying the original output stream and preventing the message writers to not close the output stream (this was already being used in the JsonbMessageBodyWriter). Fix quarkusio#28920 (cherry picked from commit 25722b7)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Quarkus version: upstream
Extension:
quarkus-rest-client-reactive-jackson
When I try to download a ~2Gb multipart file I am getting the following error
Multipart pojo:
Rest API (that is failing)
Note:
File
is a 2Gb file. Quarkus 2.13.3.Final works as expected!Expected behavior
No error
Actual behavior
outofMemory exception
How to Reproduce?
git clone [email protected]:quarkus-qe/quarkus-test-suite.git
cd http/rest-client-reactive
mvn clean verify -Dit.test=LargeFileHandlingIT#downloadMultipart
Note: double-check that
downloadMultipart
is not disabled.Output of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8) OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: