-
Notifications
You must be signed in to change notification settings - Fork 793
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
Fix error in read_sample()/take_sample() operations with Datasharing [12130] #2070
Conversation
Instead of doing this, we could add the following lines on
|
@richiware I would also add a regression test for |
df00e6d
to
985d320
Compare
@MiguelCompany Regression test was implemented. About your conditional statement suggestion in the |
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 with green CI
@richiware This needs a rebase |
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Co-authored-by: Miguel Company <miguelcompany@eprosima.com> Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
cf6522f
to
828d4a2
Compare
Rebase was done. |
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 with green CI
The bug was reproduced when reader's history is 1 depth and while read_sample()/take_sample() operation is deserializing the data, the data is overwritten by the datawriter. The
ReadTakeCommand
returned OK and the code tries to access a 0 length vector.Also the code was changed to return NO_DATA if the operation will return no data.