-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix NoClassDefFoundError - io.airlift.compress.lz4.UnsafeUtil #10983
Conversation
Reading a message fails with [org.apa.pul.cli.imp.ClientCnx] (pulsar-client-io-2-1) [localhost/127.0.0.1:6650] Got exception java.lang.NoClassDefFoundError: Could not initialize class io.airlift.compress.lz4.UnsafeUtil at io.airlift.compress.lz4.Lz4RawDecompressor.decompress(Lz4RawDecompressor.java:60) at org.apache.pulsar.common.compression.CompressionCodecLZ4.decode(CompressionCodecLZ4.java:91)
@newur We also need to update the version in the license files:
You can find them at:
|
For the record: deep down the following error is thrown when using JDK 16 and aircompressor <19:
Could not make it work with VM parameters like Also see: airlift/aircompressor#125 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I cannot reproduce the failing unit tests locally. Checkout tag |
It is a flaky test. |
…#10983) * fix NoClassDefFoundError - io.airlift.compress.lz4.UnsafeUtil Reading a message fails with [org.apa.pul.cli.imp.ClientCnx] (pulsar-client-io-2-1) [localhost/127.0.0.1:6650] Got exception java.lang.NoClassDefFoundError: Could not initialize class io.airlift.compress.lz4.UnsafeUtil at io.airlift.compress.lz4.Lz4RawDecompressor.decompress(Lz4RawDecompressor.java:60) at org.apache.pulsar.common.compression.CompressionCodecLZ4.decode(CompressionCodecLZ4.java:91) * update aircompressor license file * update aircompressor license file
* fix NoClassDefFoundError - io.airlift.compress.lz4.UnsafeUtil Reading a message fails with [org.apa.pul.cli.imp.ClientCnx] (pulsar-client-io-2-1) [localhost/127.0.0.1:6650] Got exception java.lang.NoClassDefFoundError: Could not initialize class io.airlift.compress.lz4.UnsafeUtil at io.airlift.compress.lz4.Lz4RawDecompressor.decompress(Lz4RawDecompressor.java:60) at org.apache.pulsar.common.compression.CompressionCodecLZ4.decode(CompressionCodecLZ4.java:91) * update aircompressor license file * update aircompressor license file (cherry picked from commit 2ea1ce6)
…#10983) * fix NoClassDefFoundError - io.airlift.compress.lz4.UnsafeUtil Reading a message fails with [org.apa.pul.cli.imp.ClientCnx] (pulsar-client-io-2-1) [localhost/127.0.0.1:6650] Got exception java.lang.NoClassDefFoundError: Could not initialize class io.airlift.compress.lz4.UnsafeUtil at io.airlift.compress.lz4.Lz4RawDecompressor.decompress(Lz4RawDecompressor.java:60) at org.apache.pulsar.common.compression.CompressionCodecLZ4.decode(CompressionCodecLZ4.java:91) * update aircompressor license file * update aircompressor license file
Motivation
Java client fails with
Java 16
while receiving a message. Error:Can be reproduced with the official example for Java Client from the docu while using JDK 16.
Workaround
Locally I use
pulsar-client-original
, and exclude the aircompressor 16. Example:Modifications
Upgrade io.airlift.aircompressor to version 19.
Does this pull request potentially affect one of the following parts: