-
Notifications
You must be signed in to change notification settings - Fork 876
Fix DATA_COUNT to account for number of destinations [11446] #1949
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
Fix DATA_COUNT to account for number of destinations [11446] #1949
Conversation
0de02a9 to
198e7fc
Compare
6671995 to
fbf9faf
Compare
MiguelBarro
left a comment
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.
On test RTPSStatisticsTests.statistics_rpts_avoid_empty_resent_callbacks the SAMPLE_DATAS callback is expected:
Fast-DDS/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp
Lines 926 to 931 in 8def391
| EXPECT_CALL(*writer_listener, on_heartbeat_count) | |
| .Times(AtLeast(1)); | |
| EXPECT_CALL(*writer_listener, on_data_count) | |
| .Times(AtLeast(1)); | |
| EXPECT_CALL(*writer_listener, on_sample_datas) | |
| .Times(AtLeast(1)); |
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
fbf9faf to
75aebbf
Compare
I have rebased this PR, as this has already been fixed on master. |
MiguelBarro
left a comment
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
This PR builds on top of #1945 and fixes the way DATA_COUNT collect samples, in order to make it more accurate and also improve performance by calling the listener fewer times (once per
send_any_unsent_changes/unsent_change_added_to_historycall)