Multiple publishers and multiple subscribers on same topic

4 posts / 0 new
Last post
Offline
Last seen: 6 years 11 months ago
Joined: 07/01/2013
Posts: 4
Multiple publishers and multiple subscribers on same topic

  

Offline
Last seen: 6 years 11 months ago
Joined: 07/01/2013
Posts: 4

Here is the scenario being tested: 

Used the LatencyQos of the attached xml file (which is from the PerfTests 2.1 in RTI website ) 

Launching 10 subscribers. 10 subscribers have subscribed one topic ( called DATA). 

Waiting for 6 seconds.  

Launching 10 publishers.  10 publishers are publishing to the above topic DATA.  Each publisher is publishing 100 messages of length 1K. 

After publishing, publisher programs are exiting. 

Now, each subscriber is supposed to receive 10*100 (1000) messages.  

But, subscribers did not receive messages from some publishers.  

Is anything to be added in QOS?

 

File Attachments: 
Offline
Last seen: 3 months 1 week ago
Joined: 02/11/2016
Posts: 144

Hey,

Try sleeping for a short while after setting up the writers (that is, after creating the writers).

A non-durable writer (and as far as i can see, LatencyQos does not set the writers to be durable) will not publish samples to readers it matches AFTER sending the samples originally.

It's not impossible that after creating the writers you sent the samples before the matching process ended.

 

Good luck,

Roy.

Offline
Last seen: 6 years 11 months ago
Joined: 07/01/2013
Posts: 4

 

Thank you Roy. I will try that solution.

 

-Sudhakar