Skip to content
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

Only create readers, writers, and tracks when they are going to be used [19421] #57

Merged
merged 34 commits into from
Oct 9, 2023

Conversation

Tempate
Copy link
Contributor

@Tempate Tempate commented Aug 31, 2023

In the previous version, the DdsBridge created a reader and a writer for every participant. Then, for each reader, the DdsBridge created a track towards every writer (except the participant's writer unless the participant was configured as a repeater).

In this version, the DdsBridge creates the readers and the writers dynamically.

  • Whenever a participant discovers an external subscriber, the DdsBridge:

    1. Creates a writer in the participant who discovered the subscriber.
    2. Creates readers in the participants who have a route towards the participant who discovered the subscriber.
  • Whenever an external subscriber drops or disconnects, the DdsBridge:

    1. Removes its associated writer from every track it was on.
    2. Removes the tracks that don't have any writers in them.

Merge after

@Tempate Tempate marked this pull request as ready for review September 15, 2023 06:23
@juanlofer-eprosima juanlofer-eprosima changed the title Only create readers, writers, and tracks when they are going to be used Only create readers, writers, and tracks when they are going to be used [19421] Sep 25, 2023
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brave PR, keep it up!

ddspipe_core/include/ddspipe_core/core/DdsPipe.hpp Outdated Show resolved Hide resolved
ddspipe_core/include/ddspipe_core/core/DdsPipe.hpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/communication/dds/DdsBridge.cpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/communication/dds/DdsBridge.cpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/communication/dds/DdsBridge.cpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/communication/dds/DdsBridge.cpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/communication/dds/DdsBridge.cpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/core/DdsPipe.cpp Outdated Show resolved Hide resolved
ddspipe_core/include/ddspipe_core/core/DdsPipe.hpp Outdated Show resolved Hide resolved
ddspipe_core/src/cpp/core/DdsPipe.cpp Outdated Show resolved Hide resolved
@Tempate Tempate changed the title Only create readers, writers, and tracks when they are going to be used [19421] Only create readers, writers, and tracks when they are needed [19421] Oct 3, 2023
@Tempate Tempate changed the title Only create readers, writers, and tracks when they are needed [19421] Only create readers, writers, and tracks when they are going to be used [19421] Oct 3, 2023
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super NIT

Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Signed-off-by: tempate <[email protected]>
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tempate Tempate merged commit 47856ff into main Oct 9, 2023
12 checks passed
@Tempate Tempate deleted the feature/dynamic_tracks branch October 9, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants