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

Use unique mangled names when creating Content Filter Topics #762

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

Mario-DL
Copy link
Contributor

@Mario-DL Mario-DL commented May 30, 2024

This PR makes every Content Filter Name unique by adding a static atomic counter. With this change, two or more content-filtered subscriptions can be created for the same topic name.

Tests are included in the following related PRs

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Check linters cpplint and uncrustify

rmw_fastrtps_shared_cpp/src/utils.cpp Show resolved Hide resolved
Signed-off-by: Mario-DL <[email protected]>
@fujitatomoya
Copy link
Collaborator

@Mario-DL thanks for the PR.

i would like to clarify that,

This PR makes every Content Filter Name unique by adding a static atomic counter. With this change, two or more content-filtered subscriptions can be created for the same topic name.

before this fix, we cannot have the content filtered topic on the topic within the same participant, correct? and that is the problem to address with this PR?

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI.

I would like to ask someone from eProsima to review this.

CC: @MiguelCompany @EduPonz

@MiguelCompany
Copy link
Collaborator

before this fix, we cannot have the content filtered topic on the topic within the same participant, correct? and that is the problem to address with this PR?

Before this fix, we cannot have more than one content filter on the same topic within the same participant. Correct.

I would like to ask someone from eProsima to review this.

We already did, since @Mario-DL works at eProsima. See my approval here

@ahcorde
Copy link
Contributor

ahcorde commented Jun 3, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@ahcorde
Copy link
Contributor

ahcorde commented Jun 3, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 97edce2 into ros2:rolling Jun 3, 2024
3 checks passed
@fujitatomoya
Copy link
Collaborator

@ahcorde thanks for taking care of CI.

@Mario-DL @MiguelCompany how does it sound that we backport this to jazzy, iron and humble? since this is just adding the static local variable in function scope, it is okay to backport and user-experience is better? if okay, i will manage all backports including CI. what do you think?

@MiguelCompany
Copy link
Collaborator

how does it sound that we backport this to jazzy, iron and humble?

@fujitatomoya it sounds great. I think it makes sense to backport

@fujitatomoya
Copy link
Collaborator

@Mergifyio backport iron humble jazzy

Copy link

mergify bot commented Jun 5, 2024

backport iron humble jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 5, 2024
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)
mergify bot pushed a commit that referenced this pull request Jun 5, 2024
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)
mergify bot pushed a commit that referenced this pull request Jun 5, 2024
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)
ahcorde pushed a commit that referenced this pull request Jun 6, 2024
…769)

Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)

Co-authored-by: Mario Domínguez López <[email protected]>
fujitatomoya pushed a commit that referenced this pull request Jun 7, 2024
…767)

Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)

Co-authored-by: Mario Domínguez López <[email protected]>
fujitatomoya pushed a commit that referenced this pull request Jun 12, 2024
…768)

Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario-DL <[email protected]>
(cherry picked from commit 97edce2)

Co-authored-by: Mario Domínguez López <[email protected]>
@fujitatomoya
Copy link
Collaborator

@Mario-DL @MiguelCompany Just FYI, all backports up to humble completed.

@MiguelCompany MiguelCompany deleted the fix/rolling/unique-cft-names branch June 12, 2024 06:37
@MiguelCompany
Copy link
Collaborator

Just FYI, all backports up to humble completed.

Thank you very much @fujitatomoya !

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.

4 participants