Skip to content

Conversation

@marcosbento
Copy link
Collaborator

@marcosbento marcosbento commented Jan 26, 2026

Description

Mirror unregistration was failing hard and causing an ecFlow server crash. These chances ensure the unregistration process is done in a safe manner, and networking issues are handled gracefully.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

🌦️ >> Documentation << 🌦️
https://sites.ecmwf.int/docs/dev-section/ecflow/pull-requests/PR-270

A failure to de-register the client handle happens essentially every
time the remote server is not available (e.g. has been shutdown, or is
busy handling other requests), and is reported as an exception.
This exception needs to be captured and handled to prevent the error
from bubbling up and causing the server to terminate.

Re ECFLOW-2058
This change allows to configure sub-second time periods between
connection retries.

Re ECFLOW-2058
This change allows to configure sub-second time periods for connection
timeout.

Re ECFLOW-2058
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 75.22936% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.28%. Comparing base (c576339) to head (66de7ad).

Files with missing lines Patch % Lines
libs/base/src/ecflow/base/SslClient.cpp 0.00% 7 Missing ⚠️
libs/node/src/ecflow/node/NodeAlgorithms.cpp 66.66% 7 Missing ⚠️
...service/src/ecflow/service/mirror/MirrorClient.cpp 42.85% 4 Missing ⚠️
libs/client/src/ecflow/client/ClientInvoker.cpp 77.77% 2 Missing ⚠️
libs/node/src/ecflow/node/MirrorAttr.hpp 0.00% 2 Missing ⚠️
libs/base/src/ecflow/base/Client.cpp 83.33% 1 Missing ⚠️
libs/base/src/ecflow/base/cts/user/CtsNodeCmd.cpp 66.66% 1 Missing ⚠️
libs/client/test/TestClientTimeout.cpp 0.00% 1 Missing ⚠️
libs/core/src/ecflow/core/Environment.hpp 75.00% 1 Missing ⚠️
libs/pyext/src/ecflow/python/ExportClient.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #270      +/-   ##
===========================================
+ Coverage    49.26%   49.28%   +0.01%     
===========================================
  Files         1231     1232       +1     
  Lines        96996    97061      +65     
  Branches     14860    14868       +8     
===========================================
+ Hits         47787    47834      +47     
- Misses       49209    49227      +18     

☔ View full report in Codecov by Sentry.
📢 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.

3 participants