-
Notifications
You must be signed in to change notification settings - Fork 793
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
Collection of data and notification to listeners RTPS_PACKETS_LOST [10795] #1956
Conversation
1c704de
to
a65676b
Compare
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 so far
a65676b
to
cc8a2ff
Compare
cc8a2ff
to
6afdc81
Compare
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
41ff744
to
36f1c16
Compare
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
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.
Please, correct the gtest fixture flaw you detected by replacing:
Fast-DDS/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp
Lines 383 to 385 in 836e0d3
std::string str("https://github.com/eProsima/Fast-DDS.git"); | |
memcpy(writer_change->serializedPayload.data, str.c_str(), str.length()); | |
writer_change->serializedPayload.length = (uint32_t)str.length(); |
with
std::string str("https://github.com/eProsima/Fast-DDS.git");
writer_change->serializedPayload.length = std::min(length, static_cast<uint32_t>(str.length()));
memcpy(writer_change->serializedPayload.data,
str.c_str(),
writer_change->serializedPayload.length);
msg->length -= statistics_submessage_length; | ||
msg->pos = msg->length; |
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.
In order to prevent side effects is better practice to stash the msg state before the read_statistics_submessage
call using local variables.
Note that read_statistics_submessage
original implementation avoided side effects and stashing would have prevented applying the correction twice.
Entity2LocatorTraffic data{}; | ||
rtps::StatisticsSubmessageData::Sequence seq_data{}; | ||
}; | ||
std::map<lost_traffic_key, lost_traffic_value> lost_traffic; |
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.
According to the style guide traffic
and lost_traffic
should be underscored.
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
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
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
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
No description provided.