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

SubscriberHistory: best effort reader w/KEEP_LAST_HISTORY_QOS does not overwrite last sample #41

Closed
liamstask opened this issue Apr 28, 2016 · 2 comments

Comments

@liamstask
Copy link
Contributor

same pub/sub attributes as #39.

If I publish 2 samples, then take from the subscriber, I receive sample 1 not sample 2 as expected with KEEP_LAST_HISTORY_QOS.

The check for if(m_isHistoryFull) in SubscriberHistory::received_change() prevents the logic that handles KEEP_LAST_HISTORY_QOS from removing samples to make space for the new sample. If I remove that check, the take works as expected (but will not work for KEEP_ALL_HISTORY_QOS readers).

liamstask added a commit to 3drobotics/Fast-RTPS that referenced this issue Apr 29, 2016
Previously, when `m_isHistoryFull` is true, samples would not be removed even when `m_historyQos.kind` is `KEEP_LAST_HISTORY_QOS`.

There is a similar problem in the `WITH_KEY` block, which this change does not address.

for eProsima#41
@richiware
Copy link
Member

We will check it in current development branch before next release.

@SantiagoMunoz
Copy link
Contributor

New release is out, tests indicate this issue has been solved. Cheers!

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

No branches or pull requests

3 participants