Allow loaned messages without data-sharing#568
Conversation
|
Maybe definition of |
|
@fujitatomoya Would you mind triggering CI again on this PR? |
|
@MiguelCompany still unstable, could you check the log? |
|
@MiguelCompany friendly ping. |
|
@fujitatomoya I've been investigating the failures on rclcpp When using loans, method We need to add an override for |
|
CC: @Barry-Xu-2018 |
|
@Barry-Xu-2018 do we have any progress on this? |
|
I don't try it since this PR isn't merged. |
i think this needs to be addressed with this PR at the same time. otherwise, we cannot have green light on CI. |
|
I try this PR and confirm message (pod) can be loaned without data-sharing enabled. About the failures on rclcpp test_subscription_topic_statistics
I have a different opinion. @MiguelCompany For handle_message(), it has codes to get topic statistics (call handle_message() of SubscriptionTopicStatistics). But for handle_loaned_message(), nothing is done for statistics even if statistics is enabled. So test failed. |
|
@Barry-Xu-2018 I think you are right. On my first look at the code, I thought that The point is what you say. Statistics should be handled when handling a loaned message. As an extra fix, I think we should also mimic the rest of the behavior on |
|
@Barry-Xu-2018 ah, right what we need to do is modify |
Okay. I make it. |
|
I created a PR ros2/rclcpp#1927. |
|
i thinik repo file is old, need to be rebased. |
I can rebase the branch if necessary |
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
70d3fbe to
2b846a8
Compare
|
@fujitatomoya I rebased this one. |
|
@MiguelCompany thanks! CI: |
|
@fujitatomoya I think the failing tests are wrong, as this line should be with |
|
CI with ros2/rclcpp#1940 |
|
I will run whole CI for this, since this could affect many packages. |
|
Note: after this PR is merged, rmw_fastrtps tries to enable see also, #596 (comment) |
|
@fujitatomoya Is there anything pending here? |
|
I just need to rerun the CI, thanks for the ping. |
The only requirement on the Fast DDS API in order for loans to be used is that the type is plain.
This PR allows calling the loan APIs when data-sharing is OFF.
This enables performance improvements on intra-process and UDP.