-
Notifications
You must be signed in to change notification settings - Fork 762
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
[19263 ] User configuration for SHM metatraffic #3753
Conversation
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
…butes. 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>
@richiprosima Please test this |
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@richiprosima Please test this |
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@richiprosima Please test this |
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.
If would be nice to have a set of communication tests that ckeck the three possibilities of this new feature (unicast, all, none [default])
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
I will try to think of something. Perhaps some black-box testing would be possible. |
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@richiprosima please test this |
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 test
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.
adding configuration parameter to fallback not to use shm transport for metatraffic, and default behavior change makes sense.
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>
…bReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@richiprosima Please test this |
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@Mergifyio backport 2.11.x 2.10.x 2.6.x |
✅ Backports have been created
|
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
* Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6)
* Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6) # Conflicts: # test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp # test/unittest/rtps/network/NetworkFactoryTests.cpp # versions.md
* Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6) # Conflicts: # versions.md
* User configuration for SHM metatraffic (#3753) * Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6) # Conflicts: # test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp # test/unittest/rtps/network/NetworkFactoryTests.cpp # versions.md * Refs #19263. Change new log to old macro. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed conflicts. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Removed unrelated tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
* Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6) Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
* User configuration for SHM metatraffic (#3753) * Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> (cherry picked from commit 25631e6) # Conflicts: # versions.md * Fix conflicts Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
* Refs #18966. Forcing UDP for metatraffic. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Allowing metatraffic depends on flags. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. NetworkFactory constructor receives RTPSParticipantAttributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Parsing property from participant attributes. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19255. Remove unused mp_ResourceSemaphore. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed NetworkFactoryTests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed TCPv6Tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Fixed link errors on unit tests. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Additional suggestions from code review. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added possitive test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Added negative test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for avoid_builtin_multicast on PubSubReader. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Configuration for max_multicast_locators_number on PubSubReader/PubSubWriter. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Enable multicast discovery on new test. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestions. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Add feature to versions.md. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> * Refs #19263. Apply suggestion. Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> --------- Signed-off-by: Miguel Company <MiguelCompany@eprosima.com> Signed-off-by: jimwang118 <wangzhijie05@beyondsoft.com>
Description
This is a rework of #3641.
In order to improve resilience when a participant dies unexpectedly, forcing discovery to use UDP by default.
The behavior can be configured using a new property
fastdds.shm.enforce_metatraffic
, which can take valuesnone
(default),unicast
(default behavior before this PR), orall
(would allow communication with a SHM only participant)This PR changes the default behavior, but since it improves Fast DDS stability, and it has no ABI breaks, we will backport it to the supported branches.
@Mergifyio backport 2.11.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Related documentation PR: [19263] User configuration for SHM metatraffic Fast-DDS-docs#535
Reviewer Checklist