Skip to content

Conversation

@danielksb
Copy link
Contributor

Motivation:

When deploying Netty on a read-only volume (e.g, within a Docker container) with "zstd-jni" included in the classpath, initialization of zstd will fail because it requires unpacking files into a temporary directory. Therefore, it is crucial to verify whether zstd can be initialized, rather than merely checking for the presence of the library in the classpath.

Modification:

During the verification process for the presence of "zstd-jni" in the classpath, the system will also attempt to initialize the library. This initialization follows a pattern similar to that used for the Brotli library check.

Result:

Fixes #13978.

@normanmaurer
Copy link
Member

@normanmaurer normanmaurer added this to the 4.1.110.Final milestone Apr 17, 2024
@danielksb
Copy link
Contributor Author

@danielksb did you sign our icla yet, https://netty.io/s/icla ?

Not yet, I will do it know.

@normanmaurer normanmaurer merged commit 5834cdb into netty:4.1 Apr 18, 2024
@normanmaurer
Copy link
Member

@danielksb thanks a lot!

normanmaurer pushed a commit that referenced this pull request Apr 18, 2024
Motivation:

When deploying Netty on a read-only volume (e.g, within a Docker
container) with "zstd-jni" included in the classpath, initialization of
zstd will fail because it requires unpacking files into a temporary
directory. Therefore, it is crucial to verify whether zstd can be
initialized, rather than merely checking for the presence of the library
in the classpath.

Modification:

During the verification process for the presence of "zstd-jni" in the
classpath, the system will also attempt to initialize the library. This
initialization follows a pattern similar to that used for the Brotli
library check.

Result:

Fixes #13978.

Co-authored-by: Daniel Käs <[email protected]>
LuciferYang pushed a commit to apache/spark that referenced this pull request May 28, 2024
### What changes were proposed in this pull request?
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`.

### Why are the changes needed?
- https://netty.io/news/2024/05/22/4-1-110-Final.html
  This version has brought some bug fixes and improvements, such as:
  Fix Zstd throws Exception on read-only volumes (netty/netty#13982)
  Add unix domain socket transport in netty 4.x via JDK16+ ([#13965](netty/netty#13965))
  Backport #13075: Add the AdaptivePoolingAllocator ([#13976](netty/netty#13976))
  Add no-value key handling only for form body ([#13998](netty/netty#13998))
  Add support for specifying SecureRandom in SSLContext initialization ([#14058](netty/netty#14058))

- https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #46744 from panbingkun/SPARK-48420.

Authored-by: panbingkun <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZstdConstants thows ExceptionInInitializerError on read-only volumes

4 participants