Fast-DDS icon indicating copy to clipboard operation
Fast-DDS copied to clipboard

Issue - Publisher/Subscriber not matching [3986]

Open Jimmy316 opened this issue 8 years ago • 6 comments

Hi

Have a scenario that seems intermittent. Wondering if anyone else has run into similar scenario. All of my nodes (publisher/subscribers) run on one host. The publisher/subscribers each have their own participant. The nodes are started in parallel and I ensure that creation of the participants is atomic. I do this using a shared lock between my processes. I then add the publisher/subscriber to that participant within this critical section.

In my case I see one of the publishers/subscribers I start doesn't match. The pair that doesn't match is random. I disabled send using IP6 and this helped a lot - but still I am wondering if there are other settings I need to disable. Also wondering if there is anyone else who has run into the same scenario. This happens once every twenty restarts. I have around 5 publishers and 5 subscribers in my case.

Thanks

-- Jimmy

Jimmy316 avatar Nov 28 '18 17:11 Jimmy316

Currently we didn't have any trouble like yours. What OS are you using? Can you send us an example? Can you try with next release? It is located in the branch release/1.7.0. ↪ 2018-11-28 mié 18:31, Jimmy Bhaktha [email protected]:

Hi

Have a scenario that seems intermittent. Wondering if anyone else has run into similar scenario. All of my nodes (publisher/subscribers) run on one host. The publisher/subscribers each have their own participant. The nodes are started in parallel and I ensure that creation of the participants is atomic. I do this using a shared lock between my processes. I then add the publisher/subscriber to that participant within this critical section.

In my case I see one of the publishers/subscribers I start doesn't match. The pair that doesn't match is random. I disabled send using IP6 and this helped a lot - but still I am wondering if there are other settings I need to disable. Also wondering if there is anyone else who has run into the same scenario. This happens once every twenty restarts. I have around 5 publishers and 5 subscribers in my case.

Thanks

-- Jimmy

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/eProsima/Fast-RTPS/issues/339

richiware avatar Nov 29 '18 10:11 richiware

Hi

Thanks for getting back to me. My publisher/subscribers are running on Ubuntu 16.04 and we are subscribing to camera packets over tcp. I see if I create a publisher/subscriber and delay reading the packets from the camera. It always matches. I was tried with both the 1.6 branch and master branch and see similar behavior.

It looks like the tcp packets have a effect on discovery. For now my work around was to delay reading from the camera system (tcp packets on the network) before I perform the discovery.

Are there any UDP settings you recommend to ensure the discovery is given higher priority. Thanks

-- Jimmy

Jimmy316 avatar Dec 04 '18 18:12 Jimmy316

I have the same problem too. When restart one node(participant ctrl ), it may not matched sometimes.

Tested with v1.7.0 and ubuntu 16.04, and more participant info as below:

Participant gps discovered
New publisher for topic '/gps/gga' of type '992ce8a1687cec8c8bd883ec73ca41d1' discovered
Participant ctrl discovered
New publisher for topic '/pad_cmd_vel' of type 'bd97b5b6dc22d65ac69a41b7bc09efaf' discovered
New publisher for topic '/ctrl_cmd' of type 'bd97b5b6dc22d65ac69a41b7bc09efaf' discovered
New publisher for topic '/mode_request' of type '992ce8a1687cec8c8bd883ec73ca41d1' discovered
New publisher for topic '/speed_up' of type 'fdb28210bfa9d7c91146260178d9a584' discovered
New subscriber for topic '/gps/gga' of type '992ce8a1687cec8c8bd883ec73ca41d1' discovered
New subscriber for topic '/gps/heading' of type '992ce8a1687cec8c8bd883ec73ca41d1' discovered
New subscriber for topic '/gps/odom' of type 'cd5e73d190d741a2f92e81eda573aca7' discovered
New subscriber for topic '/base_info' of type '1472e52254a6150cb0d4859c4c055f5e' discovered
New subscriber for topic '/imu' of type '6a62c6daae103f4ff57a132d6f95cec2' discovered

Debug with wireshark, when ctrl restart, gps may not broadcast it's topic information to others, and the subscriber and publisher cannot matched. So, any configuration to fix this.


The node is running in a docker with native network. After down the docker0 adapter created by docker, it works fine.

wenlong-dev avatar Feb 01 '19 02:02 wenlong-dev

#400 should resolve this issue. can you check against release/v1.7.1 branch? Thanks

richiware avatar Feb 05 '19 05:02 richiware

As this was answered and no comments were received, we close the issue. Feel free to reopen if the problem persists.

LuisGP avatar Apr 16 '19 14:04 LuisGP

The problem turned out to be due to not cleanly closing out previous connections. Once we cleaned up our processes and deleted the participants we do not see this anymore.

Jimmy316 avatar Apr 16 '19 14:04 Jimmy316