Skip to content

[16737] Fix StatelessWriter ACK check#3234

Merged
MiguelCompany merged 4 commits intomasterfrom
hotfix/StatelessWriter-is-acked-by-all
Jan 24, 2023
Merged

[16737] Fix StatelessWriter ACK check#3234
MiguelCompany merged 4 commits intomasterfrom
hotfix/StatelessWriter-is-acked-by-all

Conversation

@JLBuenoLopez
Copy link
Copy Markdown
Contributor

@JLBuenoLopez JLBuenoLopez commented Jan 19, 2023

Signed-off-by: JLBuenoLopez-eProsima joseluisbueno@eprosima.com

Description

StatelessWriter::is_acked_by_all checks that the sample has been delivered but instead of checking that the sequence number is lower than the last sent, the contrary is checked. This PR fixes this and other places where this same issue is happening.

@Mergifyio backport 2.9.x 2.8.x 2.7.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.
    N/A Any new/modified methods have been properly documented using Doxygen.
  • Fast DDS test suite has been run locally.
  • Changes are ABI compatible.
  • Changes are API compatible.
    N/A Documentation builds and tests pass locally.
    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

  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
@JLBuenoLopez
Copy link
Copy Markdown
Contributor Author

@Mergifyio backport 2.9.x 2.8.x 2.7.x 2.6.x

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 19, 2023

backport 2.9.x 2.8.x 2.7.x 2.6.x

✅ Backports have been created

Details

@JLBuenoLopez
Copy link
Copy Markdown
Contributor Author

Failures seem unrelated to changes (in fact I do not think this is tested anywhere in Fast DDS test suite).
#3233 test StatefulWriter::is_acked_by_all indirectly.

Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

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

I think @richiware should also review this

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

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

After reviewing this with @richiware, there are two additional changes needed

…cknowledgements

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
@JLBuenoLopez
Copy link
Copy Markdown
Contributor Author

@richiprosima please test this

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
@JLBuenoLopez
Copy link
Copy Markdown
Contributor Author

@richiprosima please test this

@MiguelCompany MiguelCompany merged commit 86125f5 into master Jan 24, 2023
@MiguelCompany MiguelCompany deleted the hotfix/StatelessWriter-is-acked-by-all branch January 24, 2023 10:13
mergify bot pushed a commit that referenced this pull request Jan 24, 2023
* Refs #16737: fix StatelessWriter ack check

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestion

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions: fix notification to wait for acknowledgements

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
(cherry picked from commit 86125f5)
mergify bot pushed a commit that referenced this pull request Jan 24, 2023
* Refs #16737: fix StatelessWriter ack check

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestion

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions: fix notification to wait for acknowledgements

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
(cherry picked from commit 86125f5)
mergify bot pushed a commit that referenced this pull request Jan 24, 2023
* Refs #16737: fix StatelessWriter ack check

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestion

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions: fix notification to wait for acknowledgements

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
(cherry picked from commit 86125f5)
mergify bot pushed a commit that referenced this pull request Jan 24, 2023
* Refs #16737: fix StatelessWriter ack check

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestion

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions: fix notification to wait for acknowledgements

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #16737: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
(cherry picked from commit 86125f5)
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