Skip to content

Commit ae2d918

Browse files
authored
[8.16] Upgrade Netty to 4.1.118.Final (#122371) (#123481)
* Upgrade Netty to `4.1.118.Final` (#122371) This PR upgrades Netty to `4.1.118.Final`. * Bring back old netty versions for hdfs test fixture
1 parent c8c16d0 commit ae2d918

File tree

6 files changed

+51
-46
lines changed

6 files changed

+51
-46
lines changed

build-tools-internal/version.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ log4j = 2.19.0
1414
slf4j = 2.0.6
1515
ecsLogging = 1.2.0
1616
jna = 5.12.1
17-
netty = 4.1.115.Final
17+
netty = 4.1.118.Final
1818
commons_lang3 = 3.9
1919
google_oauth_client = 1.34.1
2020

gradle/verification-metadata.xml

+42-42
Original file line numberDiff line numberDiff line change
@@ -1389,109 +1389,109 @@
13891389
<sha256 value="a3ebec96768ee4a2d3db44597e84cea2d0bdd68ca04822397980ea9f67075a86" origin="Generated by Gradle"/>
13901390
</artifact>
13911391
</component>
1392-
<component group="io.netty" name="netty-buffer" version="4.1.115.Final">
1393-
<artifact name="netty-buffer-4.1.115.Final.jar">
1394-
<sha256 value="4a7b331d3770c566ab70eb02a0d1feed63b95cf6e4d68c8fe778c4c9de2d116d" origin="Generated by Gradle"/>
1392+
<component group="io.netty" name="netty-buffer" version="4.1.118.Final">
1393+
<artifact name="netty-buffer-4.1.118.Final.jar">
1394+
<sha256 value="0eea4e8666a9636a28722661d8ba5fa8564477e75fec6dd2ff3e324e361f8b3c" origin="Generated by Gradle"/>
13951395
</artifact>
13961396
</component>
13971397
<component group="io.netty" name="netty-buffer" version="4.1.42.Final">
13981398
<artifact name="netty-buffer-4.1.42.Final.jar">
13991399
<sha256 value="7b0171a4e8bcd573e08d9f2bba053c67b557ab5012106a5982ccbae5743814c0" origin="Generated by Gradle"/>
14001400
</artifact>
14011401
</component>
1402-
<component group="io.netty" name="netty-codec" version="4.1.115.Final">
1403-
<artifact name="netty-codec-4.1.115.Final.jar">
1404-
<sha256 value="cd189afb70ec6eacfcdfdd3a5f472b4e705a5c91d5bd3ef0386421f2ae15ec77" origin="Generated by Gradle"/>
1402+
<component group="io.netty" name="netty-codec" version="4.1.118.Final">
1403+
<artifact name="netty-codec-4.1.118.Final.jar">
1404+
<sha256 value="4abd215fd1ed7ce86509d169cc9cbede5042176c265a79b3b70602b017226c3f" origin="Generated by Gradle"/>
14051405
</artifact>
14061406
</component>
14071407
<component group="io.netty" name="netty-codec" version="4.1.42.Final">
14081408
<artifact name="netty-codec-4.1.42.Final.jar">
14091409
<sha256 value="e96ced697fb7df589da7c20c995e01f75a9cb246be242bbc4cd3b4af424ff189" origin="Generated by Gradle"/>
14101410
</artifact>
14111411
</component>
1412-
<component group="io.netty" name="netty-codec-dns" version="4.1.115.Final">
1413-
<artifact name="netty-codec-dns-4.1.115.Final.jar">
1414-
<sha256 value="23dd6806bcc326855f13e69838c6411d0490e6b1aeb12e217a19a3dd6ad3f10d" origin="Generated by Gradle"/>
1412+
<component group="io.netty" name="netty-codec-dns" version="4.1.118.Final">
1413+
<artifact name="netty-codec-dns-4.1.118.Final.jar">
1414+
<sha256 value="e115e42ca1e3cc8d85e3a632d8faa102d18c0ebc1fa4511af30bec79f8c147d4" origin="Generated by Gradle"/>
14151415
</artifact>
14161416
</component>
1417-
<component group="io.netty" name="netty-codec-http" version="4.1.115.Final">
1418-
<artifact name="netty-codec-http-4.1.115.Final.jar">
1419-
<sha256 value="e6dbe971c59373bbae9802021c63b9bc1d8800fead382863d67e79e79b023166" origin="Generated by Gradle"/>
1417+
<component group="io.netty" name="netty-codec-http" version="4.1.118.Final">
1418+
<artifact name="netty-codec-http-4.1.118.Final.jar">
1419+
<sha256 value="09822d785e9a794838031ddd5346cf419b30c036a981c2e277a062bea884174b" origin="Generated by Gradle"/>
14201420
</artifact>
14211421
</component>
1422-
<component group="io.netty" name="netty-codec-http2" version="4.1.115.Final">
1423-
<artifact name="netty-codec-http2-4.1.115.Final.jar">
1424-
<sha256 value="cbed9829a5d582e91e314e209edce9a0c2eb369f23bb4fb74a5bc8b7990222c2" origin="Generated by Gradle"/>
1422+
<component group="io.netty" name="netty-codec-http2" version="4.1.118.Final">
1423+
<artifact name="netty-codec-http2-4.1.118.Final.jar">
1424+
<sha256 value="68da0b1a34dceb00a6f9f6f788fb2f6b7b9e4adba8c70658ac2bd7eb898b97ae" origin="Generated by Gradle"/>
14251425
</artifact>
14261426
</component>
1427-
<component group="io.netty" name="netty-codec-socks" version="4.1.115.Final">
1428-
<artifact name="netty-codec-socks-4.1.115.Final.jar">
1429-
<sha256 value="e9b1cc744dc6195894450b1fd4d271a821ab167fe21ae3c459b27cdadc70e81f" origin="Generated by Gradle"/>
1427+
<component group="io.netty" name="netty-codec-socks" version="4.1.118.Final">
1428+
<artifact name="netty-codec-socks-4.1.118.Final.jar">
1429+
<sha256 value="094465e3cfb3aef0fca38ed82b801f53a6c8be7ae1f83ab0c1b2e8ece2586840" origin="Generated by Gradle"/>
14301430
</artifact>
14311431
</component>
1432-
<component group="io.netty" name="netty-common" version="4.1.115.Final">
1433-
<artifact name="netty-common-4.1.115.Final.jar">
1434-
<sha256 value="39f1b5a2aaa4eab5d036dfd0486e35a4276df412e092d36b2d88b494705a134d" origin="Generated by Gradle"/>
1432+
<component group="io.netty" name="netty-common" version="4.1.118.Final">
1433+
<artifact name="netty-common-4.1.118.Final.jar">
1434+
<sha256 value="65cce901ecf0f9d6591cc7750772614ab401a84415dc9aec9da4d046f0f9a77c" origin="Generated by Gradle"/>
14351435
</artifact>
14361436
</component>
14371437
<component group="io.netty" name="netty-common" version="4.1.42.Final">
14381438
<artifact name="netty-common-4.1.42.Final.jar">
14391439
<sha256 value="3d0a918d78292eeca02a7bb2188daa4e5053b6e29b71e6308309033e121242b5" origin="Generated by Gradle"/>
14401440
</artifact>
14411441
</component>
1442-
<component group="io.netty" name="netty-handler" version="4.1.115.Final">
1443-
<artifact name="netty-handler-4.1.115.Final.jar">
1444-
<sha256 value="5972028cc863b74927ce0d11fb8d58f65da2560bef5602fe8ce8903bd306ca07" origin="Generated by Gradle"/>
1442+
<component group="io.netty" name="netty-handler" version="4.1.118.Final">
1443+
<artifact name="netty-handler-4.1.118.Final.jar">
1444+
<sha256 value="26e3f8a5e859fd62cf3c13dc6d75e4e18879f000a5d0ad7f58f8679675d23dae" origin="Generated by Gradle"/>
14451445
</artifact>
14461446
</component>
14471447
<component group="io.netty" name="netty-handler" version="4.1.42.Final">
14481448
<artifact name="netty-handler-4.1.42.Final.jar">
14491449
<sha256 value="11eda86500c33b9d386719b5419f513fd9c097d13894f25dd0c75b610d636e03" origin="Generated by Gradle"/>
14501450
</artifact>
14511451
</component>
1452-
<component group="io.netty" name="netty-handler-proxy" version="4.1.115.Final">
1453-
<artifact name="netty-handler-proxy-4.1.115.Final.jar">
1454-
<sha256 value="807e67cfb17136927d11db42df62031169d1fa0883e13f254906994c84ffbe87" origin="Generated by Gradle"/>
1452+
<component group="io.netty" name="netty-handler-proxy" version="4.1.118.Final">
1453+
<artifact name="netty-handler-proxy-4.1.118.Final.jar">
1454+
<sha256 value="fef926126f44c668968dd3e2389c2552981d452e6dfc23b1f9bd03db92c21f96" origin="Generated by Gradle"/>
14551455
</artifact>
14561456
</component>
1457-
<component group="io.netty" name="netty-resolver" version="4.1.115.Final">
1458-
<artifact name="netty-resolver-4.1.115.Final.jar">
1459-
<sha256 value="7b3455d14f59828765a00573bc3967dc59379e874bd62a67eb1926d6512109d1" origin="Generated by Gradle"/>
1457+
<component group="io.netty" name="netty-resolver" version="4.1.118.Final">
1458+
<artifact name="netty-resolver-4.1.118.Final.jar">
1459+
<sha256 value="3170c225972c18b6850d28add60db15bb28d83c4e3d5b686ca220e0bd7273c8a" origin="Generated by Gradle"/>
14601460
</artifact>
14611461
</component>
14621462
<component group="io.netty" name="netty-resolver" version="4.1.42.Final">
14631463
<artifact name="netty-resolver-4.1.42.Final.jar">
14641464
<sha256 value="89768242b6b7cce9bd9f5945ad21d1b4bae515c6b1bf03a8af5d1899779cebc9" origin="Generated by Gradle"/>
14651465
</artifact>
14661466
</component>
1467-
<component group="io.netty" name="netty-resolver-dns" version="4.1.115.Final">
1468-
<artifact name="netty-resolver-dns-4.1.115.Final.jar">
1469-
<sha256 value="4aca31593e5896c64ab7e041bbc6c0d851bd9634ec3a4354208141a35576619f" origin="Generated by Gradle"/>
1467+
<component group="io.netty" name="netty-resolver-dns" version="4.1.118.Final">
1468+
<artifact name="netty-resolver-dns-4.1.118.Final.jar">
1469+
<sha256 value="c0e0fdaffaba849e3145b2b96288fc8fc6f3b2a623cf72aaba708288348e4938" origin="Generated by Gradle"/>
14701470
</artifact>
14711471
</component>
1472-
<component group="io.netty" name="netty-transport" version="4.1.115.Final">
1473-
<artifact name="netty-transport-4.1.115.Final.jar">
1474-
<sha256 value="c3d71faaa736ffd2c9260ab0b498024b814c39c7d764bea8113fa98de6e2bdd2" origin="Generated by Gradle"/>
1472+
<component group="io.netty" name="netty-transport" version="4.1.118.Final">
1473+
<artifact name="netty-transport-4.1.118.Final.jar">
1474+
<sha256 value="ab3751e717daef9c8d91e4d74728a48730bd8530b72e2466b222b2ea3fb07db9" origin="Generated by Gradle"/>
14751475
</artifact>
14761476
</component>
14771477
<component group="io.netty" name="netty-transport" version="4.1.42.Final">
14781478
<artifact name="netty-transport-4.1.42.Final.jar">
14791479
<sha256 value="dfa817a156ea263aa9ad8364a2e226527665c9722aca40a7945f228c2c14f1da" origin="Generated by Gradle"/>
14801480
</artifact>
14811481
</component>
1482-
<component group="io.netty" name="netty-transport-classes-epoll" version="4.1.115.Final">
1483-
<artifact name="netty-transport-classes-epoll-4.1.115.Final.jar">
1484-
<sha256 value="40aa67b4463cca0ab346e393c87f6c37e8954d18ec8b78567d95b55aa1f2b3aa" origin="Generated by Gradle"/>
1482+
<component group="io.netty" name="netty-transport-classes-epoll" version="4.1.118.Final">
1483+
<artifact name="netty-transport-classes-epoll-4.1.118.Final.jar">
1484+
<sha256 value="bd86e6d41e1f6053f9577931655236259778ab045646e1e6ab04150f070864f3" origin="Generated by Gradle"/>
14851485
</artifact>
14861486
</component>
14871487
<component group="io.netty" name="netty-transport-native-epoll" version="4.1.42.Final">
14881488
<artifact name="netty-transport-native-epoll-4.1.42.Final.jar">
14891489
<sha256 value="3c7d659b3bd773e0ea9b7517d2d6baffa275a3d2ae8eb4c10cb8f0a7724b11d5" origin="Generated by Gradle"/>
14901490
</artifact>
14911491
</component>
1492-
<component group="io.netty" name="netty-transport-native-unix-common" version="4.1.115.Final">
1493-
<artifact name="netty-transport-native-unix-common-4.1.115.Final.jar">
1494-
<sha256 value="4b03e716272657c296b0204b57c140b2b2ca96b1a746c92da41f595892ec6d88" origin="Generated by Gradle"/>
1492+
<component group="io.netty" name="netty-transport-native-unix-common" version="4.1.118.Final">
1493+
<artifact name="netty-transport-native-unix-common-4.1.118.Final.jar">
1494+
<sha256 value="69b16793d7b41ea76a762bd2bd144fc4f7c39c156a7a59ebf69baeb560fb10b7" origin="Generated by Gradle"/>
14951495
</artifact>
14961496
</component>
14971497
<component group="io.netty" name="netty-transport-native-unix-common" version="4.1.42.Final">

modules/repository-azure/src/main/plugin-metadata/plugin-security.policy

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ grant {
1212
permission java.net.SocketPermission "*", "connect";
1313
// io.netty.util.concurrent.GlobalEventExecutor.startThread
1414
permission java.lang.RuntimePermission "setContextClassLoader";
15+
// io.netty.util.concurrent.GlobalEventExecutor.startThread
16+
permission java.lang.RuntimePermission "getClassLoader";
1517
// Used by jackson bean deserialization
1618
permission java.lang.RuntimePermission "accessDeclaredMembers";
1719
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

modules/transport-netty4/src/main/plugin-metadata/plugin-security.policy

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ grant codeBase "${codebase.netty-common}" {
1414
// netty makes and accepts socket connections
1515
permission java.net.SocketPermission "*", "accept,connect";
1616

17-
// Netty sets custom classloader for some of its internal threads
17+
// Netty gets and sets classloaders for some of its internal threads
1818
permission java.lang.RuntimePermission "setContextClassLoader";
19+
permission java.lang.RuntimePermission "getClassLoader";
1920
};
2021

2122
grant codeBase "${codebase.netty-transport}" {

server/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ grant codeBase "${codebase.httpasyncclient}" {
119119
grant codeBase "${codebase.netty-common}" {
120120
// for reading the system-wide configuration for the backlog of established sockets
121121
permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
122-
// Netty sets custom classloader for some of its internal threads
122+
// Netty gets and sets classloaders for some of its internal threads
123123
permission java.lang.RuntimePermission "setContextClassLoader";
124+
permission java.lang.RuntimePermission "getClassLoader";
124125
permission java.net.SocketPermission "*", "accept,connect";
125126
};
126127

x-pack/plugin/security/src/main/plugin-metadata/plugin-security.policy

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ grant {
4646
grant codeBase "${codebase.netty-common}" {
4747
// for reading the system-wide configuration for the backlog of established sockets
4848
permission java.io.FilePermission "/proc/sys/net/core/somaxconn", "read";
49-
// Netty sets custom classloader for some of its internal threads
49+
// Netty gets and sets classloaders for some of its internal threads
5050
permission java.lang.RuntimePermission "setContextClassLoader";
51+
permission java.lang.RuntimePermission "getClassLoader";
5152
};
5253

5354
grant codeBase "${codebase.netty-transport}" {

0 commit comments

Comments
 (0)