iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

Enhance it for cluster-restart tests

Open jt2594838 opened this issue 7 months ago • 2 comments

The current IT framework often fails on tests that involve cluster restarts, due to port occupation. It is because some nodes may create clients that occupy vital ports of the nodes that are restarting. To avoid this, the port detection utility is refactored to list the PIDs that are occupying the ports. If the PID is associated with a database node, the node will also be restarted to release the port.

By the way, when DataNode or ConfigNode exits with an exception, it will try to return a more precise code other than -1.

jt2594838 avatar Jun 20 '25 03:06 jt2594838

Codecov Report

Attention: Patch coverage is 7.40741% with 25 lines in your changes missing coverage. Please review.

Project coverage is 39.12%. Comparing base (b7bd552) to head (274394d). Report is 20 commits behind head on master.

Files with missing lines Patch % Lines
...ain/java/org/apache/iotdb/db/service/DataNode.java 0.00% 7 Missing :warning:
...va/org/apache/iotdb/commons/utils/StatusUtils.java 0.00% 7 Missing :warning:
...rg/apache/iotdb/confignode/service/ConfigNode.java 16.66% 5 Missing :warning:
...iotdb/commons/exception/PortOccupiedException.java 0.00% 4 Missing :warning:
...org/apache/iotdb/commons/client/ClientManager.java 0.00% 2 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15794      +/-   ##
============================================
- Coverage     39.12%   39.12%   -0.01%     
  Complexity      198      198              
============================================
  Files          4837     4838       +1     
  Lines        314520   314739     +219     
  Branches      39457    39508      +51     
============================================
+ Hits         123062   123134      +72     
- Misses       191458   191605     +147     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Jun 23 '25 03:06 codecov[bot]