abhishekrb19 opened a new pull request, #18848: URL: https://github.com/apache/druid/pull/18848
https://github.com/apache/druid/pull/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: ```stacktrace 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) ``` Newer versions of OSHI require a corresponding bump to the JNA dependencies, so update the JNA and JNA-platform dependencies [accordingly](https://mvnrepository.com/artifact/com.github.oshi/oshi-core/6.9.1) Added a unit test that fails locally with the same error when the JNA versions are not bumped. ### Release note Bump `net.java.dev.jna` and `net.java.dev.jna` versions from 5.13.0 to 5.18.1 for Oshi monitor. This PR has: - [x] been self-reviewed. - [x] a release note entry in the PR description. - [x] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md) - [x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met. - [x] been tested in a test Druid cluster. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
