-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add statistics for handle_loaned_message #1927
Add statistics for handle_loaned_message #1927
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to resolve the question about double delivery and the interaction with intra-process.
(Edit: Progress -> Process) This is a case of double delivery.
At this time, Sub1 receives messages from Pub1 via dispatch_intra_process(). Sub1 receives messages from Pub2 via handle_loaned_message(). Now start a new subscriber
In order to send message to Sub2, Pub1 will send message via RMW. So below code is necessary for handle_loaned_message()
|
Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
This reverts commit 565d683. Signed-off-by: Barry Xu <barry.xu@sony.com>
565d683
to
8a70502
Compare
thanks for checking!
in this situation, How Sub1 avoid to call my expectation is, Sub1 recognizes i mean there seems to be a double delivery problem in |
Right. |
@Barry-Xu-2018 yeah, that means we have an unexpected double delivery problem if we enable data sharing for rmw_fastfrpt with current code. anyway, solution can be applied on this PR. |
we need to backport this to humble, galactic and foxy. |
@wjwwood @ivanpauno could you take a look when you have time? I will start the CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@mergify backport humble galactic foxy |
* Add statistics for handle_loaned_message Signed-off-by: Barry Xu <barry.xu@sony.com> (cherry picked from commit 5c68830)
* Add statistics for handle_loaned_message Signed-off-by: Barry Xu <barry.xu@sony.com> (cherry picked from commit 5c68830) # Conflicts: # rclcpp/include/rclcpp/subscription.hpp
* Add statistics for handle_loaned_message Signed-off-by: Barry Xu <barry.xu@sony.com> (cherry picked from commit 5c68830) # Conflicts: # rclcpp/include/rclcpp/subscription.hpp
✅ Backports have been created
|
Add statistics for handle_loaned_message().
If loan message is enabled, some tests in test_subscription_topic_statistics fail. This issue is found in ros2/rmw_fastrtps#568 (comment)