-
Notifications
You must be signed in to change notification settings - Fork 11
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
b instanceof FileChannelBuffer
: never happened in my projects 🤷
#48
Comments
Hi @xabolcs, sorry for the horribly late reply. When I reported #41 I did not know what call exactly caused the problem. I expect it was a file upload, but many file uploads when perfectly fine. I just found the error in the logs, confirmed it was a new error never seen with Play1, and went looking for a fix by studying the code. The problem was easily identified and several ways to fix it were discussed, then Andrei came up with an even better way to fix it, released it, and that completely removed the issue off our radar. So I dont know what was special about the (presumed) file uploads that caused the problem... I did a search on the warning that is now logged by log.warn("Failed to reset request.body of type {}: {}",
resetNotSupported.getClass().getName(), resetNotSupported.toString()); This warning occurs between 15 to 50x per day in our logs in form of:
Digging deeper I found they relate to a single endpoint (controller method), the only method that contains the following (suspicious) code: request.params.get("body"); I can try to create a test case that triggers the warning, if that helps? Or any other thing that I can do to help? |
No problem as Netty 4 isn't ready yet! 🙃
So I thought your warnings came from the app because your app excercised those Of course, I could be wrong! 😀
As I wrote in the issue description: |
@xabolcs What you mean "Netty 4 isn't ready yet"? Netty 4.1.79.Final exists for years. Did you mean that Netty 5 is not ready yet? |
My Netty upgrade isn't ready yet: PR #25 |
It was a bit of a search to find the cause of the But I got it! It is due to RePlay receiving a large body (with a content-length larger than ~10000), then the type of So I managed to create a It's a bit of a clumsy test, as it uses |
Thank you very much! It surely will help, as #25 now have two new tests to pass! The other one (static files) is failing already with Netty 4. 😀 |
@xabolcs Most welcome. And thank you for working on one of biggest concerns on our upgrade path. :) If there's any other way I can support you, please let me know. |
I'm currently rebasing #25 to
master
which recently got 4ea9553 as a fix for #41.Because I wasn't able to port
FileChannelBuffer
to Netty4 I commented out theif (b instanceof FileChannelBuffer) { ... }
section and kept theelse { ... }
path of the code.All tests were still green so I didn't care much! 😀
But @cies came, and reported issue #41. 🙂
@cies, may I ask you to add a reproducer example project in the
replay-tests
folder?It would be nice if it would have (a test which) exercise the
b instanceof FileChannelBuffer
codepath inPlayHandler.parseRequest()
!Thanks!
The text was updated successfully, but these errors were encountered: