refactor!: remove deprecated SysMonitor #20200
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20200"
general
weight: 0.35
GWphua
Fixes #10615.
Description
The deprecated
org.apache.druid.java.util.metrics.SysMonitormonitor is removed. Its no-op variant, unused Druid subclass, Guice provider, and obsolete tests are removed as well.JvmCpuMonitornow uses OSHI process snapshots to report the existing total, user, system, and percentage CPU metrics.JvmPidDiscovereruses JavaProcessHandleto discover the current JVM PID. The Sigar PID discoverer and utility, native library packaging, Maven dependencies, and associated tests have been removed.Existing configurations that list
SysMonitorindruid.monitoring.monitorsmust be updated to useorg.apache.druid.java.util.metrics.OshiSysMonitor.The metrics documentation now documents only
OshiSysMonitor.Release note
SysMonitorhas been removed after being deprecated in Druid 27. UseOshiSysMonitorinstead.Validation
mvn -ntp test -pl processing,server -am -Dtest="org.apache.druid.java.util.metrics.JvmCpuMonitorTest,org.apache.druid.java.util.metrics.JvmPidDiscovererTest,org.apache.druid.java.util.metrics.OshiSysMonitorTest,org.apache.druid.java.util.metrics.NoopOshiSysMonitorTest,org.apache.druid.server.metrics.MetricsModuleTest" -Dsurefire.failIfNoSpecifiedTests=false -Pskip-static-checks -Dweb.console.skip=true -T1Cnpm run spellcheck