Skip to content
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

Ref. 7288 Change removed when not on instance [7289] #961

Merged
merged 4 commits into from
Jan 22, 2020

Conversation

IkerLuengo
Copy link
Contributor

SubscriberHistory::remove_change_sub should remove from
the general RTPS history even though it didn't find
the change in the instance's history.

Failing to do so will result on the same change returned
once and again every time a new change is added
to the subscriber's history

@IkerLuengo IkerLuengo force-pushed the bug/remove_keyed_not_found branch from 706641e to b9111b4 Compare January 20, 2020 08:24
return false;
}
else
if (mp_subImpl->getAttributes().topic.getTopicKind() != NO_KEY)
{
t_m_Inst_Caches::iterator vit;
if (!find_key(change, &vit))
{
return false;
Copy link
Member

Choose a reason for hiding this comment

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

I think we should also remove the change when the key is not found

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Mac Build Status
  • Windows Build Status

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Mac Build Status
  • Windows Build Status

SubscriberHistory::remove_change_sub should remove from
the general RTPS history even though it didn't find
the change in the instance's history.

Failing to do so will result on the same change returned
once and again every time a new change is added
to the subscriber's history
@IkerLuengo IkerLuengo force-pushed the bug/remove_keyed_not_found branch from 7a14930 to 0102be9 Compare January 22, 2020 11:48
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Mac Build Status
  • Windows Build Status

@IkerLuengo
Copy link
Contributor Author

IkerLuengo commented Jan 22, 2020

Errors not related to changes
* One error on Windows -> Short liveliness
* One Valgrind error on Linux -> SecurityValidationRemoteTests unit testing. Not related to the changes and already happening randomly

@MiguelCompany MiguelCompany merged commit 2d37e85 into 1.9.x Jan 22, 2020
@MiguelCompany MiguelCompany deleted the bug/remove_keyed_not_found branch January 22, 2020 14:27
@MiguelCompany MiguelCompany added this to the v1.9.5 milestone Jan 22, 2020
IkerLuengo added a commit that referenced this pull request Feb 21, 2020
IkerLuengo added a commit that referenced this pull request Feb 24, 2020
MiguelCompany pushed a commit that referenced this pull request Feb 24, 2020
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.

3 participants