-
Notifications
You must be signed in to change notification settings - Fork 156
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
chore: Add support for controlling the NettyTransport's byteBuf alloc… #1709
base: 1.1.x
Are you sure you want to change the base?
Conversation
…ator type. (apache#1707) * chore: Add support for controlling the NettyTransport's byteBuf allocator type. * chore: extract deriveByteBufAllocator method (cherry picked from commit dbc9ed3)
This is grey area for me. Whether a change like this be in a patch. If it is really useful then I'd support merging it. That said, I'd prefer if the Flink team test with a 1.2 snapshot and then if they confirm that they get the behaviour that they want then we can merge this. |
@pjfanning I still think we should merge this and make sure we get it in the next 1.1.4 to help the Flink community. |
refs: apache/flink#26042 too |
I am -1 on this. Let the Flink team approach us and convince us. I have seen noone say that this is a must for Flink. |
@pjfanning A brief explanation of why this is generally needed: Flink uses Netty not only for RPC but also for data shuffling. Migrating to Netty 4 for RPC caused some tests to become flaky, primarily due to differences in memory allocation in the newer version. The safest option for us would be to set Pekko allocation to |
@afedulov have you tested with the pekko 1.2 snapshot jars that already support this? |
@pjfanning I just created a local Pekko build (more details in apache/flink#25955) from the 1.1.x branch with this PR applied on top and executed our failing test with setting the So we believe this config option would be useful for us if you guys can get it into 1.1.4. From our side it is not something that is urgent, but it could be useful for use if in case there will be a 1.1.4 release, this change would be part of it. |
This PR is not merged. You can only get this support by using the latest 1.2 snapshots. See #1709 (comment) |
And I built 1.1.x after I applied your commit from Seems he did a local patch |
Yes, I built Pekko myself locally after I applied this patch to 1.1.x locally, and built Flink against that version with the added setting to run the test. |
PR looks fine to me but I would prefer to have it released in a non patch update |
@mdedetrich it's already in the main, here is to decide if we include it in 1.1.4 |
There is an option to do a 1.2.0-M1 release soon. |
Then let's do a 1.20 release, we can backport strictly fixes from main to 1.1.x branch if needed. |
I'm not sure if I can have all my features ready in 1.2.0, Chinese Spring Festival is coming. I still have some features in mind but not yet there. |
I'm thinking 1.2.0-M1, 1.2.0-M2, maybe some more milestones and later this year, a full 1.2.0 release. Flink team should be fine using 1.2.0-M1 in production if we don't add any extra changes to what is already on main branch. |
I think pekko's M1 release should be very stable too, @afedulov @ferenc-csaky wdyt about it. |
Does the |
netty is a provided dependency of pekko-remote - so choose your own patch version of netty as long it is 4.1.x. |
@pjfanning in that case it should be no problem on our end to wait for 1.2, thanks! 👍 |
@He-Pin @pjfanning @mdedetrich Since we are already at the stage of creating release candidates, we cannot wait for the 1.2-M1 releases. However, it would still be valuable to have the 1.2-M1 release available as a fallback option in case we underestimated the impact of the upgrade to Netty 4 and need to provide a timely patch on our side. |
@afedulov To be clear, I did not mean to bump Pekko for the currently in-flight patch releases, but for the next one against Flink 1.20. By that time, I am sure Pekko 1.2 will be released properly. :) |
…ator type. (#1707)
chore: Add support for controlling the NettyTransport's byteBuf allocator type.
chore: extract deriveByteBufAllocator method
(cherry picked from commit dbc9ed3)
related thread: https://lists.apache.org/thread/6lj5lbg18hz4n9zckn0b89p9mv9nz14g