Bump JNA version from 5.13.0 to 5.18.1 for Oshi monitor#18848
Merged
Conversation
Newer versions of Oshi requires a bump in JNA dependency too. Without that, running quickstart with oshi sys monitor will fail processes with the following error: Caused by: java.lang.NoClassDefFoundError: com/sun/jna/platform/mac/CoreFoundation$CFLocale at oshi.software.os.mac.MacOperatingSystem.<init>(MacOperatingSystem.java:58) at oshi.software.os.mac.MacOperatingSystemJNA.<init>(MacOperatingSystemJNA.java:54) at oshi.SystemInfo.createOperatingSystem(SystemInfo.java:87) at oshi.util.Memoizer$1.get(Memoizer.java:65) at oshi.SystemInfo.getOperatingSystem(SystemInfo.java:76) at org.apache.druid.java.util.metrics.OshiSysMonitor.<init>(OshiSysMonitor.java:102) at org.apache.druid.java.util.metrics.OshiSysMonitor.<init>(OshiSysMonitor.java:90) Adds a unit test that fails locally with the same error without the jna dependencies bumped up.
jtuglu1
approved these changes
Dec 17, 2025
Contributor
Author
|
Thanks, @jtuglu1! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#18839 updated the oshi-core dependency from 6.4.4 to 6.9.1.
Running Druid locally on macOS with the Oshi monitor enabled causes service startup to fail with the following error:
Newer versions of OSHI require a corresponding bump to the JNA dependencies, so update the JNA and JNA-platform dependencies accordingly
Added a unit test that fails locally with the same error when the JNA versions are not bumped.
Release note
Bump
net.java.dev.jnaandnet.java.dev.jnaversions from 5.13.0 to 5.18.1 for Oshi monitor.This PR has: