hpx::tolerate_node_faults: use the runtime configuration's setting #8297
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.63) × (1 − Review Confidence (0.36)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 278 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 81% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.337
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #8297"
general
weight: 0.35
coderabbitai[bot]
hpx::tolerate_node_faults()readhpx.enable_fault_toleranceon every call and ignoredutil::runtime_configuration::tolerate_node_faults(bool), whichforce_disconnect,supervision_observer_force_disconnectandlocality_removedcall to tolerate the localities they disconnect or kill. The parcel layer, the device conduit,packaged_actionand the TCP parcelport all askhpx::tolerate_node_faults(), so these tests ran without fault tolerance.This is what made
tests.unit.modules.device_conduit_ucx.locality_removedtime out in "Linux (Debug, all tests)" on several branches. In CI's containers UCX moves data between localities on one node over TCP, so the conduit's sends to the killed worker fail with "Connection reset by remote peer". Since the destination isn't tolerated, the conduit reports the failed send withhpx::report_error. That call comes from background work while the worker's state is notrunning, soreport_errortreats it as an error outside the runtime and stops the runtime whilehpx_mainis still running. The stop then waits forever for the pending threads (hpx_mainamong them), which no worker runs any more.With this change
hpx::tolerate_node_faults()returns the runtime configuration's setting. That ishpx.enable_fault_toleranceunless the application has changed it, and false without a runtime, as before.locality_removedalso flushes its progress messages, so a run that doesn't finish shows how far it got.Testing, in CI's image (
stellargroup/build_env:19, clang, CI's configuration and UCX 1.23.0) with UCX limited to TCP and loopback as in CI: without the changelocality_removedhung in 40 of 175 runs, with it 220 of 220 passed. The tests ofdevice_conduit_ucx,init_runtime,supervision,parcelsetandasync_distributedpass there (60 tests), and with GCC 14 on rostam (56 tests, withoutasync_distributed).Two things this doesn't change:
hpx::report_errorstops the runtime when it is called on an HPX thread whose worker isn'trunning(an idle worker inpre_sleeporsleeping), and a stop started that way can leave threads that are pending after the workers have left. Both only matter for errors that aren't tolerated.