Issue with max samples ressources, how to free Queue

4 posts / 0 new
Last post
Offline
Last seen: 9 years 12 months ago
Joined: 08/28/2013
Posts: 66
Issue with max samples ressources, how to free Queue

Hi,

Im using rti micro edition and i am facing a problem with the max_instances and max_samples attributes.

In my example, topic have no keys and i set max_instances to 10, max_samples to 10 and max_sample_per_instance to 1.

When i send 10 topics, it is ok, but if i continue sending, then the Datawriter has a ressource error and sends no more topics.
I do not have option autopurge_unregistered_instances_delay in QoS with rti micro so my question is, how can free the buffer ?
I have red also link http://community.rti.com/content/forum-topic/instance-resources-dispose-and-unregister

I would like that when a sample is received (from all Subscribers), this sample is deleted and space is set free for next one.

Best Regards,

Rodolf

Offline
Last seen: 9 years 12 months ago
Joined: 08/28/2013
Posts: 66

Please, anybody got an idea ?

With keyed topic and max sample = 32 and max_instances = 32, 33rd instance is reject to be written with error : LOG_FAIL_GET_ENTRY_DUE_TO_RESOURCE_LIMITS

What should be done in Publisher after DDS_DataWriter_write and in Subscriber after DDS_DataReader_return_loan ?

Thanks for help.

 

Rodolf

Offline
Last seen: 3 years 1 month ago
Joined: 01/17/2013
Posts: 13

Hello Rodolf,

For the first question you say you send 10 topics, but I assume that you mean sending 10 samples on 1 topic? RTI Connect DDS Micro does not support history KEEP_ALL and will overwrite samples regardless of whether they have been received or not when resources are needed.

For the 2nd question, can you share the IDL type for the topic and the code writing data? The error message indicates that you are trying to write more than 32 unique key values. That is not allowed based on the resource limits. Also, how is this question related to the first problem? Are you testing with two different types?

tron

 

Offline
Last seen: 9 years 12 months ago
Joined: 08/28/2013
Posts: 66

HI,

I don t have this issue anymore, because of keyed data and new lib micro 2.2.3

Thanks tron