Prevent configuration timeouts from wedging gateway workers#335
Closed
eclipse0922 wants to merge 1 commit intoselfpatch:mainfrom
Closed
Prevent configuration timeouts from wedging gateway workers#335eclipse0922 wants to merge 1 commit intoselfpatch:mainfrom
eclipse0922 wants to merge 1 commit intoselfpatch:mainfrom
Conversation
Bound ConfigurationManager spin lock acquisition and SyncParametersClient IPC to the configured service timeout. Slow or hung parameter services now surface TIMEOUT, feed the negative cache, and have regression coverage for slow responses and concurrent contention. Constraint: SyncParametersClient spins a shared node and may block indefinitely when a remote parameter service never replies Rejected: Per-request parameter client nodes | larger structural change without addressing IPC timeout semantics Rejected: HTTP-layer timeouts only | would still leave spin_mutex_ contention inside ConfigurationManager Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep parameter IPC time-bounded while holding spin_mutex_; do not reintroduce unbounded SyncParametersClient calls Tested: Devcontainer rosdep install; colcon build --packages-up-to ros2_medkit_gateway with -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON; colcon test --packages-select ros2_medkit_gateway --ctest-args -R test_configuration_manager Not-tested: Full ros2_medkit_gateway test suite; PCH-enabled GCC 13 devcontainer build path (compiler ICE)
Collaborator
|
Hey @eclipse0922 |
Collaborator
|
This duplicates #333 |
Contributor
Author
|
@mfaferek93 my apologies — I didn’t notice that #333 was already assigned. Thanks for the clarification! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Prevent configuration requests from permanently wedging the gateway when a ROS 2 parameter service stalls.
Issue
Link the related issue (required):
Type
Testing
rosdep install --from-paths src --ignore-src -r -yinside the devcontainercolcon build --build-base /tmp/colcon-build --install-base /tmp/colcon-install --packages-up-to ros2_medkit_gateway --cmake-args -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ONcolcon test --build-base /tmp/colcon-build --install-base /tmp/colcon-install --packages-select ros2_medkit_gateway --ctest-args -R test_configuration_manager --event-handlers console_direct+Checklist
Notes:
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON.