-
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
Propagate servers list updates to PDPServer and PDPClient [12278] #2138
Propagate servers list updates to PDPServer and PDPClient [12278] #2138
Conversation
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
…n using DDS layer Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@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 with greenish CI
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@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.
Discovery server test failure is not one of the common ones but I have reproduce it in master
. It seems that it is flaky and fails from time to time (but really sparingly).
* Refs 12278: Only add new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Update Discovery Server with new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Check that old server list is a subset of the new one when using DDS layer Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Test now checks that servers cannot be removed from list Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Manually match new server' PDP endpoints Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Discovery test for adding servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Randomize test parameters Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Uncrustify Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Address Windows warning Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Apply suggestions Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Use nullptr and add headers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Add SystemInfo source to CMake Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
…ew servers to the remote server list (#2142) * Add empty api (#2111) * Refs 12196: add empty api Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * DomainParticipantQos propagation to the RTPS layer implementation (#2113) * Refs #12196: link dds and rtps layers Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: modify and announce change in user data QoS Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: update remote servers list Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add update_attributes method to RTPSParticipant mock class Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: protect remote servers list with PDP mutex Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix ParticipantTests.CheckDomainParticipantQos test. The first time the QoS was set it was calling to the update_attributes method Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs 12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: uncrustify Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: reset hasChanged flag Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: refactor to check if Qos has changed both in DDS and RTPS layers Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix ParticipantTests Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: bug fix Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * WireProtocolConfigQos update through DomainParticipant::set_qos (#2131) * Refs 12197: Check that the only modification in wire_protocol is the list of servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Unit test for changing WireProtocolQosPolicy Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Apply suggestions Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Uncrustify Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Add UserDataQoS blackbox test (#2130) * Refs #12196: modify Blackbox PubSubParticipant API to include UserDataQosPolicy Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add discovery participant API to PubSubParticipant Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add blackbox test that checks user data QoS update Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: uncrustify Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix deadlock in Blackbox test Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Propagate servers list updates to PDPServer and PDPClient (#2138) * Refs 12278: Only add new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Update Discovery Server with new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Check that old server list is a subset of the new one when using DDS layer Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Test now checks that servers cannot be removed from list Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Manually match new server' PDP endpoints Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Discovery test for adding servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Randomize test parameters Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Uncrustify Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Address Windows warning Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Apply suggestions Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Use nullptr and add headers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Add SystemInfo source to CMake Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
…ew servers to the remote server list (eProsima#2142) * Add empty api (eProsima#2111) * Refs 12196: add empty api Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * DomainParticipantQos propagation to the RTPS layer implementation (eProsima#2113) * Refs #12196: link dds and rtps layers Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: modify and announce change in user data QoS Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: update remote servers list Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add update_attributes method to RTPSParticipant mock class Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: protect remote servers list with PDP mutex Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix ParticipantTests.CheckDomainParticipantQos test. The first time the QoS was set it was calling to the update_attributes method Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs 12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: uncrustify Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: reset hasChanged flag Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: refactor to check if Qos has changed both in DDS and RTPS layers Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix ParticipantTests Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: bug fix Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * WireProtocolConfigQos update through DomainParticipant::set_qos (eProsima#2131) * Refs 12197: Check that the only modification in wire_protocol is the list of servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Unit test for changing WireProtocolQosPolicy Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Apply suggestions Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12196: Uncrustify Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Add UserDataQoS blackbox test (eProsima#2130) * Refs #12196: modify Blackbox PubSubParticipant API to include UserDataQosPolicy Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add discovery participant API to PubSubParticipant Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: add blackbox test that checks user data QoS update Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: uncrustify Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: fix deadlock in Blackbox test Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #12196: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Propagate servers list updates to PDPServer and PDPClient (eProsima#2138) * Refs 12278: Only add new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Update Discovery Server with new servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Check that old server list is a subset of the new one when using DDS layer Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Test now checks that servers cannot be removed from list Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Manually match new server' PDP endpoints Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Discovery test for adding servers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Randomize test parameters Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Uncrustify Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Address Windows warning Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Apply suggestions Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Use nullptr and add headers Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> * Refs 12278: Add SystemInfo source to CMake Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> Signed-off-by: Samuel Wilhelmsson <samuel@halodi.com>
This PR brings the following functionality:
DomainParticipantQos::wire_protocol().builtin.discovery_config.m_DiscoveryServers
can only be modified to add servers, but not to remove them.PDPServer
andPDPClient
so that discovery can take place