Skip to content

Limit repeated warning logs#17889

Open
Caideyipi wants to merge 6 commits into
masterfrom
fix-log-throttling
Open

Limit repeated warning logs#17889
Caideyipi wants to merge 6 commits into
masterfrom
fix-log-throttling

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

  • log login lock messages only when thresholds are first reached
  • suppress duplicate auth attack and ConfigNode connection warnings while the same condition persists
  • throttle repeated disk free-space warnings per directory

Tests

  • mvn -Ddevelocity.off=true -nsu -pl iotdb-core/node-commons spotless:apply
  • mvn -Ddevelocity.off=true -nsu -pl iotdb-core/datanode spotless:apply
  • JUnitCore: org.apache.iotdb.commons.utils.JVMCommonUtilsTest
  • JUnitCore: org.apache.iotdb.db.auth.LoginLockManagerTest org.apache.iotdb.db.auth.AuthorizerManagerTest

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.8% Duplication on New Code (required ≤ 5%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.57616% with 275 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.94%. Comparing base (c3e74a2) to head (95a5e79).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
...db/service/metrics/IoTDBInternalLocalReporter.java 29.85% 47 Missing ⚠️
...etrics/metricsets/net/WindowsNetMetricManager.java 0.00% 47 Missing ⚠️
.../metrics/metricsets/net/LinuxNetMetricManager.java 0.00% 38 Missing ⚠️
...nager/pipe/coordinator/runtime/PipeMetaSyncer.java 3.84% 25 Missing ⚠️
...e/manager/subscription/SubscriptionMetaSyncer.java 5.55% 17 Missing ⚠️
...torageengine/load/active/ActiveLoadDirScanner.java 39.28% 17 Missing ⚠️
...b/metrics/reporter/iotdb/IoTDBSessionReporter.java 54.83% 14 Missing ⚠️
.../apache/iotdb/db/auth/ClusterAuthorityFetcher.java 43.47% 13 Missing ⚠️
...trics/metricsets/disk/LinuxDiskMetricsManager.java 78.57% 12 Missing ⚠️
...ator/runtime/heartbeat/PipeHeartbeatScheduler.java 10.00% 9 Missing ⚠️
... and 11 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17889      +/-   ##
============================================
+ Coverage     40.54%   40.94%   +0.39%     
+ Complexity     2622      387    -2235     
============================================
  Files          5244     5246       +2     
  Lines        362367   363805    +1438     
  Branches      46651    46866     +215     
============================================
+ Hits         146938   148951    +2013     
+ Misses       215429   214854     -575     

☔ 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.

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.

1 participant