-
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
IllegalReferenceCountException logged with enabled compression #14695
Comments
/cc @evanchooly |
Hello I have the same issue.
I only added this 3 lines based on https://quarkus.io/guides/rest-json#gzip-support |
Do you have a reproducer? I was not able to reproduce it. |
Thanks for looking at this. I'll try to build one. The error happens in a bigger code base but in a rather simple endpoint that I can't share. |
@stuartwdouglas Sorry for the delay. The reproducer is quite easy as this error seems to be triggered by the size of the response. The reproducer illustrates another problem: depending on the size of the payload the exception is just logged or truncated. See the three tests there. [1] https://github.com/pschyma/quarkus-compression-error-reproducer.git |
Also hit this error. Was using resteasy with jackson and returning a View object with a List with 300+ smallish values (worked with 100), maybe this can help with reproducing (jackson maybe writing every one and flushing something?, i have no idea?) |
a workaround to enable gzip on our APIs is to add till the problem is fixed |
Looks like a Netty issue, I have a potential fix here: netty/netty#11093 |
I have fixed the netty bug, this should be fixed when we upgrade. |
Seems to be fixed in 1.13.1 ? was facing the same issue using: in non-native mode, seems to be gone by now - maybe implicity updating netty under the hood? Thx @stuartwdouglas |
I still see this exception on 1.13.1 (resteasy-reactive) in JVM mode. To me it seems related to the response body size (small responses do not seem to throw the exception) @stuartwdouglas , is your PR on netty related to bigger responses? |
Thanks for your input @casell - I’ll try again soon with some bigger responses! |
The fix is in Netty 4.1.61 which has not been included yet. |
yep my bad -> still existent but seems to actually be related to larger responses. |
@stuartwdouglas Netty was upgraded to 4.1.65 via #17436 which is part of 2.0.0.CR1 that was released today. Still, I'm not sure this is all fixed now:
Then again, I do see that exeception being logged when trying the reproducer from #12584 (for the second request, after the first hanging one). |
Still an issue in 1.13.6.final, disabling compression works
|
Turns out my fix was incomplete: netty/netty#11358 It fixes it if compression is actually used, but it fails if no accept-encoding header is present. |
Hi
Describe the bug
I'm seeing this in 1.11.1.Final after enabling compression via
quarkus.http.enable-compression
:Expected behavior
There should be no exception logged as the content is transfered without any problem.
To Reproduce
Steps to reproduce the behavior:
I'll try to create a reproducer if needed be.
Configuration
Environment (please complete the following information):
uname -a
orver
:Linux voyager 5.10.11-arch1-1 #1 SMP PREEMPT Wed, 27 Jan 2021 13:53:16 +0000 x86_64 GNU/Linux
java -version
:mvnw --version
orgradlew --version
):Additional context
/edit: fixed the statement about the tried workaround – it's not working.
The text was updated successfully, but these errors were encountered: