Skip to content

Fix process metric precision#18229

Merged
jt2594838 merged 1 commit into
masterfrom
codex/fix-performance-dashboard-metrics
Jul 17, 2026
Merged

Fix process metric precision#18229
jt2594838 merged 1 commit into
masterfrom
codex/fix-performance-dashboard-metrics

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve fractional values in the process CPU load metric
  • Preserve fractional values in the process memory ratio metric

This prevents low CPU usage from being reported as zero and avoids rounding process memory utilization to a whole percentage.

Verification

  • mvn spotless:apply -pl iotdb-core/datanode
  • mvn compile -pl iotdb-core/datanode -DskipTests

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.78%. Comparing base (5b311f6) to head (f3f580f).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...pache/iotdb/db/service/metrics/ProcessMetrics.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master   #18229   +/-   ##
=========================================
  Coverage     42.78%   42.78%           
  Complexity      343      343           
=========================================
  Files          5356     5356           
  Lines        380277   380294   +17     
  Branches      49332    49332           
=========================================
+ Hits         162691   162715   +24     
+ Misses       217586   217579    -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jt2594838
jt2594838 merged commit 824e2db into master Jul 17, 2026
43 of 44 checks passed
@jt2594838
jt2594838 deleted the codex/fix-performance-dashboard-metrics branch July 17, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants