-
Notifications
You must be signed in to change notification settings - Fork 765
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
[20658] Fix leak in SecurityManager::participant_volatile_message_secure_writer_
#4673
Conversation
b960714
to
3112b9b
Compare
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.
adding the listener of security manager to remove the history change once all readers are acknowledged, lgtm.
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.
Please revert the Fast CDR submodule update
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
3112b9b
to
5492ac7
Compare
I rebased and removed the submodule update from the commit where it was done |
@MiguelCompany I'm afraid Ubuntu and macOS CIs show failures in |
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@Mergifyio backport 2.13.x 2.10.x 2.6.x |
CI errors unrelated to the PR |
✅ Backports have been created
|
…er_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef)
…er_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef)
…er_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef)
…ter_` (#4673) (#4725) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
…ter_` (#4673) (#4724) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
…ter_` (#4673) (#4726) * Fix leak in SecurityManager::participant_volatile_message_secure_writer_ (#4673) * Refs #20658. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Add expectations to unit test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Fix issue. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20658. Improve regression test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 14ee8ef) * Fix SecurityTest unittests memory error (#4750) Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
Description
This is a fix for #4553, which reported an increase in memory consumption when the partition of a secure DataWriter is changed. The consumption came from the history of the
participant_volatile_message_secure_writer_
not being correctly cleared.This PR:
TopicPayloadPool
memory leak problem #4553volatile_writer_
in the security tests into aStrictMock
, and adds expectations for the added change to be releasedTopicPayloadPool
memory leak problem #4553 by makingSecurityManager
implementrtps::WriterListener
and removing changes from history when they are acknowledged (i.e. makingparticipant_volatile_message_secure_writer_
truly behave as volatile)@Mergifyio backport 2.13.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist