You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During VRU validation testing, it was discovered that some strategic plugins that failed to get configured or activated still publishes its capability to the plugin_discovery topic. This makes arbitrator to continuously call those plugins and time out repeatedly. From log:
1713294401.7887328 [guidance_controller-42] 1713294401.788452671 | ERROR | get_managed_node_state:106 | Server time out while getting current state for node with name: /guidance/plugins/approaching_emergency_vehicle_plugin
1713294401.7888596 [guidance_controller-42] 1713294401.788509967 | ERROR | add_plugin:183 | Failed to configure newly discovered non-required plugin: /guidance/plugins/approaching_emergency_vehicle_plugin Marking as deactivated and unavailable!
Yet, the capability is available:
1713294469.7516770 [carma_component_container_mt-25] 1713294469.751214442 | INFO | get_topics_for_capability:48 | Received Topics: /guidance/plugins/approaching_emergency_vehicle_plugin/plan_maneuvers, /guidance/plugins/route_following_plugin/plan_maneuvers, /guidance/plugins/stop_and_dwell_strategic_plugin/plan_maneuvers, /guidance/plugins/sci_strategic_plugin/plan_maneuvers, /guidance/plugins/lci_strategic_plugin/plan_maneuvers,
1713294469.7517283 [carma_component_container_mt-25]
And this results in repeated time-outs (although it is also a design flaw to try 10 times with 0.5 timeout for strategic plugins):
Since the capability is published from base classes, this type of issue probably exist for tactical and control plugins as well, which needs to be verified.
Version
4.5.0 (Current)
Expected Behavior
Inactive plugins should not publish to discovery
Actual Behavior
See above.
Steps to Reproduce the Actual Behavior
Intentionally make some plugins inactive and engage carma-platform to see arbitrator still calling those plugins
This issue occurs because plugin manager in subsystem controller depends on plugin_discovery topic to manage whether if a plugin is active or not. However, when a plugin is deactivated, its publisher gets deactivated too, so the plugin_discovery topic never receives the signal that it was deactivated. In order to handle this situation,
ros2_lifecycle base class should wait for its deriving nodes to finish its derived functions (handle_on_deactivate or on_plugin_deactivate etc) before deactivating publishers. This is so that the derived classes can publish its deactivated status before base class deactivates the publishers.
on each state transition of the plugins, they should publish its plugin status (active or not and available or not) to the discovery topic.
since a node can segfault and just exit, its lifecycle transition may not get picked up on the plugin_discovery topic. In that case, perhaps plugin_manager should also monitor outdated plugins and prune. We should still keep 2. so that we can get the status update immediately without waiting to prune with this 3. logic.
Summary
During VRU validation testing, it was discovered that some strategic plugins that failed to get configured or activated still publishes its capability to the plugin_discovery topic. This makes arbitrator to continuously call those plugins and time out repeatedly. From log:
Yet, the capability is available:
And this results in repeated time-outs (although it is also a design flaw to try 10 times with 0.5 timeout for strategic plugins):
Since the capability is published from base classes, this type of issue probably exist for tactical and control plugins as well, which needs to be verified.
Version
4.5.0 (Current)
Expected Behavior
Inactive plugins should not publish to discovery
Actual Behavior
See above.
Steps to Reproduce the Actual Behavior
Intentionally make some plugins inactive and engage carma-platform to see arbitrator still calling those plugins
Related Work
Jira: https://usdot-carma.atlassian.net/browse/CAR-6040
No response
The text was updated successfully, but these errors were encountered: