Skip to content

On the same host, when multiple topics are sending and receiving data, there is a high probability of data loss or failure to receive messages #5758

@lobmoo

Description

@lobmoo

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

System: Ubuntu 20.04
DDS Version: 3.1.0

Image

I used a set of IDL-generated data to create three topics for publishing. At the same time, the subscriber side is set up to receive all three topics. When I start the publisher first and then start the subscriber, all three topics show as matched. However, no data is received in the callback afterwards. When there is only one topic, everything works normally.

Image

test.tar.gz

The attachment above is my minimal demo. I have already compiled the DDS library and included it in the project. The compilation method is:
cmake . make
To run the demo, simply source the env.sh script.
Then, open two terminal windows (on the same host):
In one terminal, run ./node_example_exec pub
In the other terminal, run ./node_example_exec sub
This will reproduce the issue. Sometimes data can be received, but if either side is restarted, there is a high chance that no data will be received.

Current behavior

null

Steps to reproduce

null

Fast DDS version/commit

3.1.0

Platform/Architecture

Ubuntu Focal 20.04 amd64

Transport layer

Default configuration, UDPv4 & SHM

Additional context

No response

XML configuration file

Relevant log output

Network traffic capture

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue pending classification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions