You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
The netty native libraries shipped with the FlightSQL JDBC driver are relocated to avoid a conflict with existing libraries present in the classpath, but the relocation prefix is incorrect and prevent Netty to actually load them (or possibly load different libraries than the ones shipped with the driver)
Prefix used by native libraries shipped in the JDBC driver do not match
the prefix used by Netty `NativeLibraryLoader` class, preventing them to
be detected and loaded.
Change the prefix of the libraries and add a integration test to verify
the libraries are loaded
Also exclude several group of data which are not properly relocated and
may cause conflict with existing classpath.
### Rationale for this change
Prefix used by native libraries shipped in the JDBC driver do not match the prefix used by Netty `NativeLibraryLoader` class, preventing them to be detected and loaded.
### What changes are included in this PR?
Change the prefix of the libraries and add a integration test to verify the libraries are loaded
Also exclude several group of data which are not properly relocated and may cause conflict with existing classpath.
### Are these changes tested?
Yes, new test added for checking the native library loader
### Are there any user-facing changes?
No
* GitHub Issue: #44564
Authored-by: Laurent Goujon <laurent@apache.org>
Signed-off-by: David Li <li.davidm96@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
The netty native libraries shipped with the FlightSQL JDBC driver are relocated to avoid a conflict with existing libraries present in the classpath, but the relocation prefix is incorrect and prevent Netty to actually load them (or possibly load different libraries than the ones shipped with the driver)
Current prefix is
oaadj
but for Netty to correctly detect relocation prefix should match the one used by NettyNativeLibaryLoader
class (with.
replaced with_
as explained at https://github.com/netty/netty/blob/047bdfe4860c077f5f4318742d6427d0f84c5c3a/common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java#L138)Component(s)
Java
The text was updated successfully, but these errors were encountered: