[14091] Fix update remote server locators when enabling statistics#2601
Merged
MiguelCompany merged 2 commits intomasterfrom Apr 12, 2022
Merged
Conversation
Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
…cators Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
Contributor
Author
|
Ci failures are unrelated |
MiguelCompany
approved these changes
Apr 12, 2022
Member
MiguelCompany
left a comment
There was a problem hiding this comment.
LGTM. Failures seem unrelated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: JLBuenoLopez-eProsima joseluisbueno@eprosima.com
Description
If Fast DDS is compile with Statistics (
-DFASTDDS_STATISTICS=ON) and in Debug, when updating the remote server locator and assertion inOutputTrafficManager::set_statistics_message_datafails. This is due to the new locator not being added to thecollection_member of this class. New locators are added when calling to the specific transportOpenOutputChannel. This PR ensures that it is called before announcing the new Participant state, preventing the assertion to fail.Contributor Checklist
This feature is tested with the tests included in eProsima/Discovery-Server#52. Running these tests with Fast DDS compiled as described before will fail.
Changes does not affect the test suite.
RTPSParticipantImpl::update_attributesis called in only a few tests. Changes only affect if there are modified locators (if the feature is being used) and this feature is not tested in Fast DDS suite but in the Discovery Server suite.versions.mdfile (if applicable).Reviewer Checklist