Fix Netty deprecation warnings in transport-reactor-netty4 module#20429
Conversation
Signed-off-by: Sergei Ustimenko <fdesu@proton.me>
📝 WalkthroughWalkthroughFixes Netty deprecation warnings in the transport-reactor-netty4 module by replacing deprecated NioEventLoopGroup with MultiThreadIoEventLoopGroup and adding NioIoHandler.newFactory(). Changes applied to main code and test files with corresponding import updates. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-12-12T18:40:08.452ZApplied to files:
📚 Learning: 2025-12-12T13:31:51.234ZApplied to files:
📚 Learning: 2025-12-13T20:16:15.318ZApplied to files:
📚 Learning: 2025-12-19T21:26:37.090ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (12)
✏️ Tip: You can disable this entire section by setting Comment |
Signed-off-by: Sergei Ustimenko <fdesu@proton.me>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20429 +/- ##
============================================
- Coverage 73.30% 73.23% -0.08%
+ Complexity 71832 71760 -72
============================================
Files 5792 5792
Lines 328639 328641 +2
Branches 47311 47311
============================================
- Hits 240905 240665 -240
- Misses 68458 68675 +217
- Partials 19276 19301 +25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Similar to #20233 this PR fixes some of the deprecation warnings in the
transport-reactor-netty4module.NioEventLoopGroup->MultiThreadIoEventLoopGroupmigration can be found here https://netty.io/wiki/netty-4.2-migration-guide.html#new-best-practices.io.netty.handler.codec.http.HttpRequest# getUri->io.netty.handler.codec.http.HttpRequest#uriNetty-related deprecation warnings that are left:
reactor.netty.tcp.SslProvider.SslContextSpec#sslContext(reactor.netty.tcp.SslProvider.ProtocolSslContextSpec)e.g. inReactorHttpClient#createClient. This is fine, sinceProtocolSslContextSpecalready extendsGenericSslContextSpec<SslContextBuilder>and thus, when theSslContextSpec#sslContext(SslProvider.ProtocolSslContextSpec)gets removed, we'll compile against the non-deprecatedreactor.netty.tcp.SslProvider.SslCon1textSpec#sslContext(SslProvider.GenericSslContextSpec<?>).reactor.netty.http.HttpDecoderSpec#maxChunkSize(int)are still in place where the server-side requests decoder gets configured. The deprecation comment saysDeprecated as of 1.1.0. This will be removed in 2.0.0 as Netty 5 does not support this configuration., so decoder might need to get a more comprehensive update once the dependency upgrade happens.Related Issues
N/A
Check List
- [ ] API changes companion pull request created, if applicable.- [ ] Public documentation issue/PR created, if applicable.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.