You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there are some (seemingly flaky) test failures between fastrtps and opensplice on windows.
I ran this job multiple times, where the test_communication fails between the two of them in one or two cases (clock and test_msgs/Empty).
as we are not running Opensplice continuously on our farm, we could technically merge it. I'll have a look at the error messages as soon as I can.
I can reproduce the behavior locally on my OSX machine as well when compiled in debug (I guess this is why the buildfarm didn't notice it).
From a little debugging, I see that submessages are getting received and processed (in fastrtps), but no subscriber is notified. My guess is that the submessages for the payload (serialized data) is interpreted differently by fastrtps, because the message is empty. I'll have to dig around a bit deeper to find out what's happening.
Only one combination fails: FastRTPS subscribes, Opensplice sends. Only for message type test_msgs/Empty. All other combinations work just fine.
When increasing the publishing frequency from 10 Hz to 1 Hz the messages are getting transmitted correctly. Ways for me to reproduce the behavior:
1.) Start subscriber with FastRTPS on topic /ns/test with message type test_msgs/Empty.
2.a) ros2 topic pub test_msgs/Empty /ns/test (-r 1) --> will eventually communicate
2.b) ros2 topic pub test_msgs/Empty /ns/test -r 100 --> will not go through
When applying 2.b it seems like OpenSplice so-to-say gives up and the message eventually goes through.
After debugging a fair amount of variations with @dhood, the tests will constantly pass when putting a sleep on the publisher side (OpenSplice) between advertising the publisher and starting the actual publishing process. That is, we can make sure that the publisher got correctly matched on fastrtps side.
When publishing with a higher frequency, it seems fastrtps gets confused and can't handle the amount of incoming package while not having setup the subscriber correctly.
Equivalently, the test passes when putting the QoS settings to best effort as OpenSplice simply fires-and-forgets the messages and FastRTPS presumably is able to handle the incoming messages.
So it looks to me as if they are two issues coming together here. The first one not being able to send messages if the publisher and subscriber aren't correctly set up and thus somewhat synchronized.
The second problem I see is that FastRTPS can't handle to many incoming messages when sub/pub are not yet matched.
I don't know how to fix that neither am I sure that this is really the case, but it simply looks like OpenSplice sets things up way too fast for FastRTPS to handle. It is correct to say though that having the API to wait for publisher and subscribers to have matched is a way to get these tests to pass.
Activity
wjwwood commentedon Apr 3, 2018
@rohitsalem is looking for reviews on ros2/rmw_fastrtps#192 until the OpenSplice and Connext pr's are opened.
mikaelarguedas commentedon Apr 3, 2018
Not sure if there is some work by @wjwwood or @Karsten1987 to that effect, but the design document about ROS to DDS name mapping article will also need to be updated accordingly
[-]Remove topic partions [/-][+]Remove topic partitions [/+]Karsten1987 commentedon Apr 18, 2018
@rohitsalem Can you please embed the status of your latest CI here?
rohitsalem commentedon Apr 18, 2018
mikaelarguedas commentedon Apr 18, 2018
Looks like this has been the victim of a new failure we have on windows recently: ros2/build_farmer#111
rohitsalem commentedon Apr 26, 2018
rohitsalem commentedon Apr 26, 2018
@ros2/team this PRs are ready for review, Thanks!
Karsten1987 commentedon May 11, 2018
CI (with all three rmw):
win:


osx:
linux:
Karsten1987 commentedon May 14, 2018
new CI (rebased):
win:


osx:
linux:
Karsten1987 commentedon May 15, 2018
So there are some (seemingly flaky) test failures between fastrtps and opensplice on windows.
I ran this job multiple times, where the test_communication fails between the two of them in one or two cases (clock and test_msgs/Empty).
as we are not running Opensplice continuously on our farm, we could technically merge it. I'll have a look at the error messages as soon as I can.
Karsten1987 commentedon May 22, 2018
I can reproduce the behavior locally on my OSX machine as well when compiled in debug (I guess this is why the buildfarm didn't notice it).
From a little debugging, I see that submessages are getting received and processed (in fastrtps), but no subscriber is notified. My guess is that the submessages for the payload (serialized data) is interpreted differently by fastrtps, because the message is empty. I'll have to dig around a bit deeper to find out what's happening.
Only one combination fails: FastRTPS subscribes, Opensplice sends. Only for message type
test_msgs/Empty. All other combinations work just fine.Karsten1987 commentedon May 30, 2018
update:
When increasing the publishing frequency from 10 Hz to 1 Hz the messages are getting transmitted correctly. Ways for me to reproduce the behavior:
1.) Start subscriber with FastRTPS on topic
/ns/testwith message typetest_msgs/Empty.2.a)
ros2 topic pub test_msgs/Empty /ns/test (-r 1)--> will eventually communicate2.b)
ros2 topic pub test_msgs/Empty /ns/test -r 100--> will not go throughWhen applying 2.b it seems like OpenSplice so-to-say gives up and the message eventually goes through.
After debugging a fair amount of variations with @dhood, the tests will constantly pass when putting a sleep on the publisher side (OpenSplice) between advertising the publisher and starting the actual publishing process. That is, we can make sure that the publisher got correctly matched on fastrtps side.
When publishing with a higher frequency, it seems fastrtps gets confused and can't handle the amount of incoming package while not having setup the subscriber correctly.
Equivalently, the test passes when putting the QoS settings to
best effortas OpenSplice simply fires-and-forgets the messages and FastRTPS presumably is able to handle the incoming messages.So it looks to me as if they are two issues coming together here. The first one not being able to send messages if the publisher and subscriber aren't correctly set up and thus somewhat synchronized.
The second problem I see is that FastRTPS can't handle to many incoming messages when sub/pub are not yet matched.
I don't know how to fix that neither am I sure that this is really the case, but it simply looks like OpenSplice sets things up way too fast for FastRTPS to handle. It is correct to say though that having the API to wait for publisher and subscribers to have matched is a way to get these tests to pass.