-
Notifications
You must be signed in to change notification settings - Fork 775
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
[20276] Discard already processed samples on PDPListener #4268
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x |
✅ Backports have been created
|
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
EduPonz
force-pushed
the
hotfix/pdp_datarace
branch
from
January 22, 2024 17:12
289152b
to
67b213b
Compare
EduPonz
changed the title
[20276] Synchronize calls to PDPListener::onNewCacheChangeAdded
[20276] Discard already processed samples on PDPListener
Jan 22, 2024
@richiprosima please test this |
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
@richiprosima please test this |
@richiprosima please test mac test windows |
1 similar comment
@richiprosima please test mac test windows |
MiguelCompany
requested changes
Jan 24, 2024
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.
Just one nit which does not require to re-run CI
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
EduPonz
added
skip-ci
Automatically pass CI
and removed
ci-pending
PR which CI is running
labels
Jan 24, 2024
MiguelCompany
approved these changes
Jan 24, 2024
MiguelCompany
added
the
ready-to-merge
Ready to be merged. CI and changes have been reviewed and approved.
label
Jan 24, 2024
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393)
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393)
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393)
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393)
EduPonz
added a commit
that referenced
this pull request
Jan 25, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393) Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
EduPonz
added a commit
that referenced
this pull request
Jan 26, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393) Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
EduPonz
added a commit
that referenced
this pull request
Jan 27, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393) Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Mario-DL
pushed a commit
that referenced
this pull request
Mar 19, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393)
EduPonz
added a commit
that referenced
this pull request
Mar 26, 2024
* Refs #20276: Discard processing already processed samples on PDPListener Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Fix failing tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20276: Address Miguel's comments Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: EduPonz <eduardoponz@eprosima.com> (cherry picked from commit 4864393) Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ready-to-merge
Ready to be merged. CI and changes have been reviewed and approved.
skip-ci
Automatically pass CI
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a datarace in
PDPListener
that was causing assertions on Windows Debug. Prior to this PR, if a DATA(P) of an already discovered participant was received through multicast (the sample has already been processed since the data is the just the periodic announcement of the remote participant) while a DATA(uP) (or an update changing locators) is being processed on one of the metta-traffic unicast reception threads, then processing the DATA(P) could segfault while iterating over a collection of locators that the DATA(uP) processing has already deleted.This PR fixes that data race by avoiding processing a sample which has already been processed, thus avoiding re-processing of periodic announcements.
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist