eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.06k stars 738 forks source link

[20816] Properly delete builtin statistics writers upon `delete_contained_entities()` #4891

Closed Mario-DL closed 1 month ago

Mario-DL commented 1 month ago

Description

This PR fixes a wrong behavior that occurs when closing an application making an intensive use of statistics. If in the shutdown pipeline, after a manual removal of entities (delete_datareader, delete_subscriber, delete_topic) if delete_contained_entities() was called, it caused a race when alive endpoints try to keep using the statistics builtin endpoints (writers).

@Mergifyio backport 2.14.x 2.13.x 2.10.x 2.6.x

Contributor Checklist

Reviewer Checklist

EduPonz commented 1 month ago

@Mergifyio backport 2.14.x 2.13.x 2.10.x 2.6.x

mergify[bot] commented 1 month ago

backport 2.14.x 2.13.x 2.10.x 2.6.x

✅ Backports have been created

* [#4914 [20816] Properly delete builtin statistics writers upon `delete_contained_entities()` (backport #4891)](https://github.com/eProsima/Fast-DDS/pull/4914) has been created for branch `2.14.x` but encountered conflicts * [#4915 [20816] Properly delete builtin statistics writers upon `delete_contained_entities()` (backport #4891)](https://github.com/eProsima/Fast-DDS/pull/4915) has been created for branch `2.13.x` but encountered conflicts * [#4916 [20816] Properly delete builtin statistics writers upon `delete_contained_entities()` (backport #4891)](https://github.com/eProsima/Fast-DDS/pull/4916) has been created for branch `2.10.x` but encountered conflicts * [#4917 [20816] Properly delete builtin statistics writers upon `delete_contained_entities()` (backport #4891)](https://github.com/eProsima/Fast-DDS/pull/4917) has been created for branch `2.6.x` but encountered conflicts