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

[20311] Add missing TypeLookup listeners #4335

Merged
merged 6 commits into from
Feb 22, 2024
Merged

Conversation

irenebm
Copy link
Member

@irenebm irenebm commented Jan 30, 2024

Description

This pull request addresses an issue where Fast DDS fails to discover certain types when receiving a significant number of dynamic types (approximately 25).

This PR implements the onWriterChangeReceivedByAll listener for both TypeLookupReplyListener and TypeLookupRequestListener. This enables the deletion of changes received by all readers matched with the writer from the history. It prevents the CacheChange from becoming saturated, thus enabling the system to accommodate further changes effectively.

@Mergifyio backport 2.12.x 2.10.x 2.6.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • N/A; Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • Any new/modified methods have been properly documented using Doxygen.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • N/A New feature has been added to the versions.md file (if applicable).
  • N/A New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@Mario-DL Mario-DL added this to the v2.13.3 milestone Feb 14, 2024
@irenebm irenebm changed the title Add listener classes to handle cache change acknowledgments TypeLookup listener classes to handle cache change acknowledgments Feb 21, 2024
@irenebm irenebm marked this pull request as ready for review February 21, 2024 08:03
@EduPonz EduPonz changed the title TypeLookup listener classes to handle cache change acknowledgments [20311] TypeLookup listener classes to handle cache change acknowledgments Feb 21, 2024
@irenebm irenebm changed the title [20311] TypeLookup listener classes to handle cache change acknowledgments [20311] Add missing TypeLookup listeners Feb 21, 2024
@JesusPoderoso
Copy link
Contributor

@richiprosima please test this

irenebm and others added 6 commits February 22, 2024 12:09
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
@EduPonz
Copy link

EduPonz commented Feb 22, 2024

@richiprosima please test this

@EduPonz EduPonz added the ci-pending PR which CI is running label Feb 22, 2024
@EduPonz
Copy link

EduPonz commented Feb 22, 2024

@Mergifyio backport 2.12.x 2.10.x 2.6.x

Copy link
Contributor

mergify bot commented Feb 22, 2024

backport 2.12.x 2.10.x 2.6.x

✅ Backports have been created

@EduPonz EduPonz merged commit 6cb5ebb into master Feb 22, 2024
12 of 15 checks passed
@EduPonz EduPonz deleted the bugfix/typelookup_listeners branch February 22, 2024 17:32
EduPonz added a commit that referenced this pull request Feb 24, 2024
* Add listener classes to handle cache change acknowledgments

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Uncrustify

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Fix memory leaks in TypeLookupManager.cpp

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Refs #20311: Further refactor TypeLookupManager::create_endpoints

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 6cb5ebb)
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
EduPonz pushed a commit that referenced this pull request Feb 24, 2024
* Add listener classes to handle cache change acknowledgments

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Uncrustify

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Fix memory leaks in TypeLookupManager.cpp

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Refs #20311: Further refactor TypeLookupManager::create_endpoints

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 6cb5ebb)
EduPonz pushed a commit that referenced this pull request Mar 5, 2024
* Add listener classes to handle cache change acknowledgments

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Uncrustify

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Fix memory leaks in TypeLookupManager.cpp

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Refs #20311: Further refactor TypeLookupManager::create_endpoints

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 6cb5ebb)

Co-authored-by: Irene Bandera Moreno <irenebandera@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Mar 7, 2024
* Add listener classes to handle cache change acknowledgments



* Uncrustify



* Fix memory leaks in TypeLookupManager.cpp

* Apply changes



* Apply changes



* Refs #20311: Further refactor TypeLookupManager::create_endpoints



---------




(cherry picked from commit 6cb5ebb)

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: Irene Bandera Moreno <irenebandera@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
Mario-DL pushed a commit that referenced this pull request Mar 7, 2024
* Add listener classes to handle cache change acknowledgments

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Uncrustify

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Fix memory leaks in TypeLookupManager.cpp

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Refs #20311: Further refactor TypeLookupManager::create_endpoints

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
cferreiragonz pushed a commit that referenced this pull request Mar 11, 2024
* Add listener classes to handle cache change acknowledgments



* Uncrustify



* Fix memory leaks in TypeLookupManager.cpp

* Apply changes



* Apply changes



* Refs #20311: Further refactor TypeLookupManager::create_endpoints



---------




(cherry picked from commit 6cb5ebb)

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: Irene Bandera Moreno <irenebandera@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
Mario-DL pushed a commit that referenced this pull request Apr 2, 2024
* Add listener classes to handle cache change acknowledgments

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Uncrustify

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Fix memory leaks in TypeLookupManager.cpp

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Apply changes

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>

* Refs #20311: Further refactor TypeLookupManager::create_endpoints

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
EduPonz added a commit that referenced this pull request Apr 4, 2024
* Add listener classes to handle cache change acknowledgments



* Uncrustify



* Fix memory leaks in TypeLookupManager.cpp

* Apply changes



* Apply changes



* Refs #20311: Further refactor TypeLookupManager::create_endpoints



---------

Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: Irene Bandera Moreno <irenebandera@eprosima.com>
Co-authored-by: EduPonz <eduardoponz@eprosima.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-pending PR which CI is running
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants