eclipse-cyclonedds / cyclonedds

Eclipse Cyclone DDS project
https://projects.eclipse.org/projects/iot.cyclonedds
Other
889 stars 363 forks source link

With PSMX now PublisherPort or SubscriberPort are created by the RouDI #2125

Open aratar-orome opened 2 weeks ago

aratar-orome commented 2 weeks ago

Hi,

I am on the master branch and have discovered phenomenon in the iceoryx RouDi log outputs with log level verbose.

When I execute the RoundTrip example I found this lines in the RouDi log output:

RouDi is ready for clients 2024-11-05 16:44:13.347 [ Debug ]: Registered new application CycloneDDS-iox_psmx-bdcf11813da78020 2024-11-05 16:44:13.348 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-bdcf11813da78020 2024-11-05 16:44:13.350 [ Debug ]: Created new PublisherPort for application 'CycloneDDS-iox_psmx-bdcf11813da78020' with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: pong.RoundTrip' 2024-11-05 16:44:13.350 [ Debug ]: capro::SUB/UNSUB, no matching publisher for subscriber from runtime 'CycloneDDS-iox_psmx-bdcf11813da78020' and with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: ping.RoundTrip'! 2024-11-05 16:44:13.350 [ Debug ]: Created new SubscriberPort for application 'CycloneDDS-iox_psmx-bdcf11813da78020' with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: ping.RoundTrip' 2024-11-05 16:44:30.995 [ Debug ]: Registered new application CycloneDDS-iox_psmx-d74736d443615a34 2024-11-05 16:44:30.998 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-d74736d443615a34 2024-11-05 16:44:31.001 [ Debug ]: Created new PublisherPort for application 'CycloneDDS-iox_psmx-d74736d443615a34' with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: ping.RoundTrip' 2024-11-05 16:44:31.001 [ Debug ]: Created new SubscriberPort for application 'CycloneDDS-iox_psmx-d74736d443615a34' with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: pong.RoundTrip' 2024-11-05 16:44:42.047 [ Debug ]: Destroy publisher port from runtime 'CycloneDDS-iox_psmx-d74736d443615a34' and with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: ping.RoundTrip' 2024-11-05 16:44:42.047 [ Debug ]: Destroy subscriber port from runtime 'CycloneDDS-iox_psmx-d74736d443615a34' and with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: pong.RoundTrip' 2024-11-05 16:44:42.047 [ Debug ]: Deleted condition variable of applicationCycloneDDS-iox_psmx-d74736d443615a34 2024-11-05 16:44:42.047 [ Debug ]: Removed existing application CycloneDDS-iox_psmx-d74736d443615a34 2024-11-05 16:44:44.453 [ Debug ]: Destroy publisher port from runtime 'CycloneDDS-iox_psmx-bdcf11813da78020' and with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: pong.RoundTrip' 2024-11-05 16:44:44.453 [ Debug ]: Destroy subscriber port from runtime 'CycloneDDS-iox_psmx-bdcf11813da78020' and with service description 'Service: CycloneDDS iox_psmx 2156954107, Instance: RoundTripModule::DataType, Event: ping.RoundTrip' 2024-11-05 16:44:44.453 [ Debug ]: Deleted condition variable of applicationCycloneDDS-iox_psmx-bdcf11813da78020 2024-11-05 16:44:44.453 [ Debug ]: Removed existing application CycloneDDS-iox_psmx-bdcf11813da78020

Everything looks good: publisher and subscriber are created.

When I start my DDS applications with the same CycloneDDS config I got the following RouDi output:

RouDi is ready for clients 2024-11-05 16:46:25.364 [ Debug ]: Registered new application CycloneDDS-iox_psmx-33612bbb2b4518d9 2024-11-05 16:46:25.364 [ Debug ]: Registered new application CycloneDDS-iox_psmx-b0ffb9d13b8410d5 2024-11-05 16:46:25.364 [ Debug ]: Registered new application CycloneDDS-iox_psmx-f0e7a7eb0c0e593f 2024-11-05 16:46:25.364 [ Debug ]: Registered new application CycloneDDS-iox_psmx-451510052d64f7eb 2024-11-05 16:46:25.364 [ Debug ]: Registered new application CycloneDDS-iox_psmx-34930d491bf439e1 2024-11-05 16:46:25.365 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-451510052d64f7eb 2024-11-05 16:46:25.365 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-f0e7a7eb0c0e593f 2024-11-05 16:46:25.365 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-33612bbb2b4518d9 2024-11-05 16:46:25.365 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-b0ffb9d13b8410d5 2024-11-05 16:46:25.368 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-34930d491bf439e1 2024-11-05 16:46:25.371 [ Debug ]: Registered new application CycloneDDS-iox_psmx-ab2c7c75adaa9791 2024-11-05 16:46:25.372 [ Debug ]: Registered new application CycloneDDS-iox_psmx-14a91af9e8cdd8f2 2024-11-05 16:46:25.372 [ Debug ]: Registered new application CycloneDDS-iox_psmx-0f9ab249dfd93d08 2024-11-05 16:46:25.372 [ Debug ]: Registered new application CycloneDDS-iox_psmx-85fc7501e7fc6142 2024-11-05 16:46:25.372 [ Debug ]: Registered new application CycloneDDS-iox_psmx-443ebadd72b699e4 2024-11-05 16:46:25.372 [ Debug ]: Registered new application CycloneDDS-iox_psmx-25ed8aa41ef6efa7 2024-11-05 16:46:25.373 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-ab2c7c75adaa9791 2024-11-05 16:46:25.373 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-0f9ab249dfd93d08 2024-11-05 16:46:25.373 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-25ed8aa41ef6efa7 2024-11-05 16:46:25.374 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-443ebadd72b699e4 2024-11-05 16:46:25.374 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-85fc7501e7fc6142 2024-11-05 16:46:25.374 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-14a91af9e8cdd8f2 2024-11-05 16:46:25.378 [ Debug ]: Registered new application CycloneDDS-iox_psmx-1363c5e298d17420 2024-11-05 16:46:25.380 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-1363c5e298d17420 2024-11-05 16:46:25.450 [ Debug ]: Registered new application CycloneDDS-iox_psmx-f7f5b788c78220bf 2024-11-05 16:46:25.451 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-f7f5b788c78220bf 2024-11-05 16:46:26.055 [ Debug ]: Registered new application CycloneDDS-iox_psmx-23f9343b544accce 2024-11-05 16:46:26.056 [ Debug ]: Created new ConditionVariable for application CycloneDDS-iox_psmx-23f9343b544accce

Interesting is that in my DDS application I got no logs for PublisherPorts or SubscriberPorts? Also with the iox-introspection-client --all I do not see the publishers or subscribers.

The funny thing is that my DDS application communicates via iceoryx and it works in general, but I have bad feeling that something is not correctly used by me.

Additionally, with an older CycloneDDS version I have seen the publisher and subscriber ports in the iox-introsepction-client!

Can anyone give me a hint?

BR,

Andreas