Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.21.1
-
None
-
None
Description
Context :
In Drill "CpuGaugeSet" class, we use an internal class instead of a public class : com.sun.management.OperatingSystemMXBean;
This can result to a NoClassDefFoundError:
To do :
Replace the private class "com.sun.managemenet.OperatingSystemMXBean" with "java.lang.management.OperatingSystemMXBean",
Kind regards,
Mahmoud
Attachments
Attachments
Issue Links
- is related to
-
DRILL-6702 OperatingSystemMXBean class cast exception when loaded under IBM JVM
- Resolved
jnturton opened a new pull request, #2843:
URL: https://github.com/apache/drill/pull/2843
DRILL-8446(https://issues.apache.org/jira/browse/DRILL-8446): Incorrect use of OperatingSystemMXBeanSimplify CpuGaugeSet fixing the non-Sun/Oracle code path in the process.
Even though code to handle non-Sun/Oracle runtimes for the OperatingSystemMXBean was present, it would still cause them to attempt to load a class from com.sun.management causing a NoClassDefFoundError.
N/A
Launch Drill and check the affected gauges in