Skip to content

[23603] Avoid sending duplicated ACKs in DataSharing#5986

Merged
MiguelCompany merged 3 commits intomasterfrom
fix_ack_data_sharing
Sep 3, 2025
Merged

[23603] Avoid sending duplicated ACKs in DataSharing#5986
MiguelCompany merged 3 commits intomasterfrom
fix_ack_data_sharing

Conversation

@cferreiragonz
Copy link
Contributor

@cferreiragonz cferreiragonz commented Aug 26, 2025

Description

This PR improves DataSharing efficiency by removing an extra ACK that was being sent when StatefulReader::end_sample_access_nts and DataReaderHistory::remove_change_sub were being called consecutively.

@Mergifyio backport 3.3.x 3.2.x 2.14.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.
  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • 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.
  • If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz cferreiragonz added this to the v3.4.0 milestone Aug 26, 2025
@github-actions github-actions bot added the ci-pending PR which CI is running label Aug 26, 2025
@cferreiragonz cferreiragonz removed the request for review from richiprosima August 26, 2025 11:05
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz cferreiragonz requested review from richiprosima and removed request for richiprosima August 27, 2025 05:50
@mergify
Copy link
Contributor

mergify bot commented Aug 27, 2025

🧪 CI Insights

Here's what we observed from your CI run for 241a446.

❌ Failed Jobs

Pipeline Job Health on master Retries 🔍 CI Insights 📄 Logs
Fast DDS MacOS CI mac-ci / reusable-mac-ci (RelWithDebInfo) Unknown 0 View View

@cferreiragonz cferreiragonz marked this pull request as ready for review August 29, 2025 09:34
@MiguelCompany MiguelCompany merged commit 8421fb0 into master Sep 3, 2025
43 of 48 checks passed
@MiguelCompany MiguelCompany deleted the fix_ack_data_sharing branch September 3, 2025 09:58
@MiguelCompany
Copy link
Member

@Mergifyio backport 3.3.x 3.2.x 2.14.x

@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2025

backport 3.3.x 3.2.x 2.14.x

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Sep 3, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)
mergify bot pushed a commit that referenced this pull request Sep 3, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)
mergify bot pushed a commit that referenced this pull request Sep 3, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)

# Conflicts:
#	include/fastdds/rtps/reader/StatefulReader.h
#	include/fastdds/rtps/reader/StatelessReader.h
#	src/cpp/fastdds/subscriber/DataReaderImpl/ReadTakeCommand.hpp
#	src/cpp/rtps/reader/BaseReader.hpp
#	src/cpp/rtps/reader/StatefulReader.cpp
#	src/cpp/rtps/reader/StatelessReader.cpp
#	test/mock/rtps/RTPSReader/rtps/reader/BaseReader.hpp
MiguelCompany pushed a commit that referenced this pull request Sep 4, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Sep 18, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)
MiguelCompany pushed a commit that referenced this pull request Sep 23, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)
MiguelCompany pushed a commit that referenced this pull request Sep 24, 2025
* Refs #23603: Avoid duplicate ACK in datasharing



* Refs #23603: Doxygen



* Refs #23603: Mock method



---------


(cherry picked from commit 8421fb0)

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
cferreiragonz added a commit that referenced this pull request Oct 9, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)
juanlofer-eprosima pushed a commit that referenced this pull request Oct 13, 2025
* Avoid sending duplicated ACKs in DataSharing (#5986)

* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)

* Uncrustify

Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Oct 22, 2025
* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)

# Conflicts:
#	include/fastdds/rtps/reader/StatefulReader.h
#	include/fastdds/rtps/reader/StatelessReader.h
#	src/cpp/fastdds/subscriber/DataReaderImpl/ReadTakeCommand.hpp
#	src/cpp/rtps/reader/BaseReader.hpp
#	src/cpp/rtps/reader/StatefulReader.cpp
#	src/cpp/rtps/reader/StatelessReader.cpp
#	test/mock/rtps/RTPSReader/rtps/reader/BaseReader.hpp
rsanchez15 pushed a commit that referenced this pull request Oct 23, 2025
* Avoid sending duplicated ACKs in DataSharing (#5986)

* Refs #23603: Avoid duplicate ACK in datasharing

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Doxygen

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23603: Mock method

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 8421fb0)

# Conflicts:
#	include/fastdds/rtps/reader/StatefulReader.h
#	include/fastdds/rtps/reader/StatelessReader.h
#	src/cpp/fastdds/subscriber/DataReaderImpl/ReadTakeCommand.hpp
#	src/cpp/rtps/reader/BaseReader.hpp
#	src/cpp/rtps/reader/StatefulReader.cpp
#	src/cpp/rtps/reader/StatelessReader.cpp
#	test/mock/rtps/RTPSReader/rtps/reader/BaseReader.hpp

* Fix backport issues

Signed-off-by: Emilio Cuesta <emiliocuesta@eprosima.com>

* Update include/fastdds/rtps/reader/StatelessReader.h

Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>

* Update src/cpp/rtps/reader/StatelessReader.cpp

Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>

* Update include/fastdds/rtps/reader/StatefulReader.h

Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>

* Update include/fastdds/rtps/reader/StatefulReader.h

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>

* Update include/fastdds/rtps/reader/StatelessReader.h

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>

---------

Signed-off-by: Emilio Cuesta <emiliocuesta@eprosima.com>
Signed-off-by: Emilio Cuesta Fernandez <emiliocuesta@eprosima.com>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Co-authored-by: Emilio Cuesta <emiliocuesta@eprosima.com>
Co-authored-by: Miguel Company <miguelcompany@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.

2 participants