[ 
https://issues.apache.org/jira/browse/HADOOP-20070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143929#comment-18143929
 ] 

ASF GitHub Bot commented on HADOOP-20070:
-----------------------------------------

joseluisll commented on PR #8943:
URL: https://github.com/apache/hadoop/pull/8943#issuecomment-6831385630

   Following up on @pan3793’s pruning question with data. I extended the 
HADOOP-20078 prototype with a dry-run “unused jar” scan. It follows class 
references from Hadoop’s own jars through the shipped jars: constant pools, 
string constants, META-INF/services and config files. It’s conservative, so any 
reference counts as use.
   
   On the official 3.5.0 tarball, netty-all brings 31 Netty artifacts into 
share/hadoop/hdfs/lib. 11 of them are never referenced by anything in the 
distribution:
   
   netty-codec-haproxy, netty-codec-memcache, netty-codec-mqtt, 
netty-codec-redis, netty-codec-smtp, netty-codec-stomp, netty-codec-xml, 
netty-handler-ssl-ocsp, netty-transport-rxtx, netty-transport-sctp, 
netty-transport-udt
   
   The YARN application catalog WAR repeats the same set, plus codec-http2, 
codec-socks and handler-proxy. Trunk (4.1.137) gives the same result.
   
   What is used: buffer, codec, codec-http, codec-http2, common, handler, 
resolver, transport, transport-classes-epoll, transport-native-unix-common. A 
stricter, class-level analysis also finds codec-dns, codec-socks, handler-proxy 
and resolver-dns unused. The native classifier jars (epoll, kqueue, macOS DNS) 
are loaded by name, so they need a human call.
   
   So replacing netty-all with explicit modules looks like a safe way to prune. 
Two caveats:
   
   - share/hadoop/*/lib is also the classpath of user applications, so it may 
need a release note.
   - 4.2 splits netty-codec into new modules, so the list should be re-checked 
on this PR’s build.




> upgrade to netty 4.2.20
> -----------------------
>
>                 Key: HADOOP-20070
>                 URL: https://issues.apache.org/jira/browse/HADOOP-20070
>             Project: Hadoop Common
>          Issue Type: Task
>            Reporter: PJ Fanning
>            Priority: Major
>              Labels: pull-request-available
>
> https://netty.io/news/2026/11/02/4-2-20-Final.html includes a large number of 
> CVE fixes.
> So far, Hadoop has stuck with Netty 4.1.x is approaching EOL - the middle of 
> 2027.
> Upgrading from 4.1 has been straightforward where I've done this before (eg 
> Apache Pekko).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to