-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-44564: [Java][FlightSQL] Fix native libraries relocation #44565
Conversation
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.
@github-actions crossbow submit -g java |
Revision: 16824ca Submitted crossbow builds: ursacomputing/crossbow @ actions-6b353f850c |
@github-actions crossbow submit java-jars |
Revision: 16824ca Submitted crossbow builds: ursacomputing/crossbow @ actions-051991ec49
|
|
||
/** Check that relocated netty code can also load matching native library. */ | ||
@Test | ||
@Timeout(value = 2, unit = TimeUnit.MINUTES) |
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.
Does this need the timeout?
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.
Not really, I copied the pattern from the other test method (which also does not really need a test timeout as well)
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 3217fc2. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
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