-
Notifications
You must be signed in to change notification settings - Fork 979
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
DRILL-8467: Update Netty to 4.1.101 #2857
Conversation
@rymarm Would it make sense to add config options for these "new" parameters? |
@cgivre I don't think that we need to add config options for changing the default chunk size and allocation cache enabling, because both are fundamental for Drill and I don't think there are unique cases when Drill works better with other than default values so a user wishes to change them. But even If a user wishes to change them for some reason, he still can use java options |
I need to find out now, why Drill tests on Java 8 failed with our of memory error:
|
Hi @rymarm! Here are two things it would be interesting to redo the Java 8 runs with.
|
P.S. the failing test class runs fine in isolation on my laptop under IBM JDK 8 so I do think we can fix this in the CI with some environment tweaks. |
@rymarm I just got the same test failure in the 1.21 branch which is still based on Netty 4.1.73.Final. I'm testing there with more direct memory and will send a PR to master if that takes care of the issue. |
Update on my comments above: the direct memory limit increase has just been merged to master. Please rebase this and let's see what we get. |
babdc2a
to
ca9d4cf
Compare
@jnturton Thank you so much for the investigation! I didn't have time to check tests failures. |
😂 |
We just need to bump up the JAR size limit in the hadoop-2 profile at the bottom of the pom in jdbc-all now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, the 13 line diff hides the trickiness of this upgrade.
* Update Netty to 4.1.101
* Update Netty to 4.1.101
DRILL-8467: Update netty to 4.1.101
Description
Update Netty to
4.1.101
.Netty
4.1.75
has 2 "breaking" changes:PooledByteBufAllocator
chunk size was reduced from16 MiB
to4 MiB
io.netty.allocator.useCacheForAllThreads
was changed tofalse
Source: https://netty.io/news/2022/03/10/4-1-75-Final.html
I made
InnerAllocator
creation with the previously accepted chunk size for Drill - 16 MiB, and leftuseCacheForAllThreads
enabled because as far as I understand cache for all threads(not only for the Netty theads) gives better performance for Drill case.I left those options overridable by Netty Java properties
io.netty.allocator.useCacheForAllThreads
andio.netty.allocator.maxOrder
(responds for chunk size), so it can be changed without Drill recompilation as it was before.Documentation
No changes
Testing
Run unit tests.