Enhance it for cluster-restart tests
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.
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.
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.
Quality Gate passed
Issues
23 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code