Repository navigation
Fix serialized takes dropping the sample after an ignored one - #975
Conversation
TypeSupport::deserialize() reserves the take buffer, which only works on an empty FastBuffer. When a take loop skipped a sample, for example a local one with ignore_local_publications, the next sample in that loop failed to deserialize, and Fast DDS dropped it. Release the buffer before reserving it. Generated-by: Anthropic Claude Code with Claude Opus 5.5 (claude-opus-5-5) Signed-off-by: Tobias Dubois <[email protected]>
d02e921 to
d4bf4ed
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
lgtm, i think this is good catch.
Note
THIS NEED TO BE BACKPORTED TO DOWNSTREAM.
|
Pulls: #975 |
|
@Mergifyio backport lyrical kilted jazzy humble |
✅ Backports have been createdDetails
Cherry-pick of 91b33be has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of 91b33be has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of 91b33be has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of 91b33be has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Pick up #966, #962 and #975 so that the test_rosidl_buffer tests added by ros2/system_tests#615 and #613 pass on this branch. Co-Authored-By: Claude Fable 5.1 <[email protected]>
#975) (#982) TypeSupport::deserialize() reserves the take buffer, which only works on an empty FastBuffer. When a take loop skipped a sample, for example a local one with ignore_local_publications, the next sample in that loop failed to deserialize, and Fast DDS dropped it. Release the buffer before reserving it. Generated-by: Anthropic Claude Code with Claude Opus 5.5 (claude-opus-5-5) (cherry picked from commit 91b33be) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: tobdub <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
#975) (#981) TypeSupport::deserialize() reserves the take buffer, which only works on an empty FastBuffer. When a take loop skipped a sample, for example a local one with ignore_local_publications, the next sample in that loop failed to deserialize, and Fast DDS dropped it. Release the buffer before reserving it. Generated-by: Anthropic Claude Code with Claude Opus 5.5 (claude-opus-5-5) (cherry picked from commit 91b33be) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: tobdub <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
#975) (#980) TypeSupport::deserialize() reserves the take buffer, which only works on an empty FastBuffer. When a take loop skipped a sample, for example a local one with ignore_local_publications, the next sample in that loop failed to deserialize, and Fast DDS dropped it. Release the buffer before reserving it. Generated-by: Anthropic Claude Code with Claude Opus 5.5 (claude-opus-5-5) Signed-off-by: Tobias Dubois <[email protected]> (cherry picked from commit 91b33be) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: tobdub <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
TypeSupport::deserialize() reserves the take buffer, which only works on an empty FastBuffer. When a take loop skipped a sample, for example a local one with ignore_local_publications, the next sample in that loop failed to deserialize, and Fast DDS dropped it. Release the buffer before reserving it.
Generated-by: Anthropic Claude Code with Claude Opus 5.5 (claude-opus-5-5)
Description
Serialized takes lose the sample that follows an ignored local sample (
ignore_local_publications). The take loop reuses itsFastBuffer, butFastBuffer::reserve()only allocates into an empty buffer, so deserializing the next sample fails and Fast DDS drops it.This releases the buffer in
TypeSupport::deserialize()before reserving it, and adds tests that fail without the fix.Is this user-facing behavior change?
Did you use Generative AI?
Yes, Claude Opus 5.5.
Additional Information
The bug came in with #823.