Replies: 2 comments 2 replies
-
Hi @fschoenm, thanks for using Fast DDS. |
Beta Was this translation helpful? Give feedback.
-
I am moving this issue to the Support discussion forum section according to the Fast DDS CONTRIBUTING guidelines. |
Beta Was this translation helpful? Give feedback.
-
Is there an already existing issue for this?
Expected behavior
Receive the messages exactly as they are sent. (According to https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/subscriber/dataReader/readingData.html).
Current behavior
DataReader::read()
seems to invent data or merges received data from multiple messages.We have a simple publisher/subscriber scenario with a message type that contains a
map
/std::map
. When publishing multiple messages, subsequent messages don't receive the message that has been sent but message contents of multiple messages are merged into one:This seems to happen when using
DataReader::read()
(withDataReader::read_next_sample()
it seems to work correctly but that is not our use case so I haven't investigated a lot).Steps to reproduce
Here's a hopefully complete reproduction scenario. Code from IDL is generated with
fastddsgen -d idl msg.idl
.main.cpp
msg.idl
CMakeLists.txt
Fast DDS version/commit
2.14.2
Platform/Architecture
Windows 10 Visual Studio 2019
Transport layer
Default configuration, UDPv4 & SHM
Additional context
n/a
XML configuration file
Relevant log output
Network traffic capture
n/a
Beta Was this translation helpful? Give feedback.
All reactions