Commit 425b906
authored
Bump JNA version from 5.13.0 to 5.18.1 for Oshi monitor (#18848)
* Follow up to #18839
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.1 parent 8e8da48 commit 425b906
File tree
3 files changed
+21
-9
lines changed- processing/src/test/java/org/apache/druid/java/util/metrics
3 files changed
+21
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
| 1646 | + | |
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
| |||
4796 | 4796 | | |
4797 | 4797 | | |
4798 | 4798 | | |
4799 | | - | |
| 4799 | + | |
4800 | 4800 | | |
4801 | 4801 | | |
4802 | 4802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
137 | 132 | | |
138 | 133 | | |
139 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
0 commit comments