Replies: 2 comments
-
Thanks for the report. I am afraid that, even though the XTypes specification is currently being refactored, the type evolution is not in the current roadmap. If you are interested on this XTypes feature, you might consider contacting with eProsima commercial support team for options to accelerate this development. I am moving this ticket to the Ideas disccusion forum where feature requests are discussed. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick response. As I see this use case is supported by the FastCDR (and covered by test) So, looks like, only adjustments on the FastDDS are needed. In general, I think it is quite an important thing because type evolution (backward compatibility) support is one of the major Extensible types features. |
Beta Was this translation helpful? Give feedback.
-
Is there an already existing issue for this?
Expected behavior
According to the XTypes spec:
So, from my understanding of it the appendable (encoded) serialized type (using DELIMITED_CDR / XCDRv2 encoding) which contains more members than decoder knows, should be assignable.
Current behavior
The reader failed to handle extended/evolved (appendable) type and an appropriate error log message appeared:
Steps to reproduce
Define type on both the reader & writer sides in the IDL:
I.e. type is evolved and DataReader is not aware about
the_long
member.Try to launch both publisher and subscriber apps, as a result, discovery is successful but communication does not happen.
Fast DDS version/commit
v2.13.1
Platform/Architecture
Ubuntu Focal 20.04 amd64
Transport layer
UDPv4
Additional context
Seems, it happened because the chosen PREALLOCATED_WITH_REALLOC_MEMORY_MODE policy is switched to PREALLOCATED_MEMORY_MODE for some optimization purposes, but maybe it is not the case for extensible types.
A possible fix/workaround works/fixes issue for me, but not completely sure about its possible drawbacks.
XML configuration file
No response
Relevant log output
Network traffic capture
No response
Beta Was this translation helpful? Give feedback.
All reactions