-
Notifications
You must be signed in to change notification settings - Fork 795
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
[17464] Improve auto gaps in data sharing #3343
Conversation
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
We can wait for the CI to finish just to ensure that test is passing. |
@richiprosima Please test this |
The test is not correctly checking the regression. I have cherry-picked b4406ce over master and the test passes without the fixes. |
Double check it from the branch and checking out commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I have run a manual CI run to check that the regression test fails in master.
@Mergifyio backport 2.9.x 2.8.x 2.6.x 2.1.x |
✅ Backports have been created
|
* Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp
* Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp
* Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp
* Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # src/cpp/rtps/DataSharing/DataSharingListener.cpp # src/cpp/rtps/DataSharing/ReaderPool.hpp # test/blackbox/common/RTPSBlackboxTestsBasic.cpp # test/blackbox/common/RTPSWithRegistrationReader.hpp
* Improve auto gaps in data sharing (#3343) * Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp * Fix conflicts Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
* Improve auto gaps in data sharing (#3343) * Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp * Fix conflicts Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
* Improve auto gaps in data sharing (#3343) * Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # test/blackbox/common/RTPSBlackboxTestsBasic.cpp * Fix conflicts Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
* Improve auto gaps in data sharing (#3343) * Refs #17464. Avoid substraction on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Ensure sequence consistence on DataSharing ReaderPool. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Improve sequence number checks on DataSharingListener. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Additional sanity checks on StatefulReader::processGapMsg Signed-off-by: Miguel Company <[email protected]> * Refs #17464: Added RTPSBlackBoxTest for GAP processing Signed-off-by: Mario Dominguez <[email protected]> * Refs #17464: Linter Signed-off-by: Mario Dominguez <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit 2674fdd) # Conflicts: # src/cpp/rtps/DataSharing/DataSharingListener.cpp # src/cpp/rtps/DataSharing/ReaderPool.hpp # test/blackbox/common/RTPSBlackboxTestsBasic.cpp # test/blackbox/common/RTPSWithRegistrationReader.hpp * Refs #17464. Removed changes on DataSharing. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Fix conflicts. Signed-off-by: Miguel Company <[email protected]> * Refs #17464. Fixed tests Signed-off-by: Javier Santiago <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Javier Santiago <[email protected]> Co-authored-by: Miguel Company <[email protected]> Co-authored-by: Javier Santiago <[email protected]>
Description
This PR improves handling of sequence numbers on data sharing readers, and avoids the possibility of an assertion when processing an automatically generated Gap message with a wrong bitmap base.
Opened as draft till we add some regression tests.
@Mergifyio backport 2.9.x 2.8.x 2.6.x 2.1.x
Note: Only the changes to StatefulReader.cpp need to be backported to 2.1.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist