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

[14958] Instance allocation consistency

Open MRicoIE2CS opened this issue 3 years ago • 7 comments

Description

It is needed to verify the consistency of certain configurations of Resource Limits QoS policy when creating dataReaders, dataWriters and Topics. Those certain configurations are, when using instances, with parameters set as max_samples < ( max_instances * max_samples_per_instance ), in which case the creator should return nullptr.

Two unit tests has been created per each object creator, one for not keyed topic, and other for keyed topic. Then, new check rules have been added to each check_qos() method, in form of another method that extends it: check_qos_including_resource_limits(). The two new rules cover, using instances, when max_instances or max_samples_per_instance are set to inf (<= 0), and max_samples not (> 0); and when max_samples < ( max_instances * max_samples_per_instance ).

@Mergifyio backport 2.6.x 2.3.x 2.1.x

Contributor Checklist

  • [X] Commit messages follow the project guidelines.
  • [X] The code follows the style guidelines of this project.
  • [x] Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added.
  • N/A: Any new/modified methods have been properly documented using Doxygen.
  • [x] Fast DDS test suite has been run locally, just for *InstanceAllocationConsistency Tests.
  • [X] Changes are ABI compatible.
  • [X] Changes are API compatible.
  • N/A: Documentation builds and tests pass locally.
  • N/A: New feature has been added to the versions.md file (if applicable).
  • N/A: New feature has been documented/Current behavior is correctly described in the documentation.

Reviewer Checklist

  • [ ] Check contributor checklist is correct.
  • [ ] Check CI results: changes do not issue any warning.
  • [ ] Check CI results: failing tests are unrelated with the changes.

MRicoIE2CS avatar Jul 04 '22 13:07 MRicoIE2CS

@richiprosima please test this

EduPonz avatar Jul 15 '22 08:07 EduPonz

@richiprosima Please test this

MiguelCompany avatar Jul 20 '22 13:07 MiguelCompany

@richiprosima Please test this again

MiguelCompany avatar Jul 20 '22 14:07 MiguelCompany

@richiprosima please test this

EduPonz avatar Aug 10 '22 05:08 EduPonz

@richiprosima please test this

MRicoIE2CS avatar Aug 10 '22 06:08 MRicoIE2CS

@richiprosima please test this again

MRicoIE2CS avatar Aug 11 '22 10:08 MRicoIE2CS

@richiprosima please test this again

MRicoIE2CS avatar Aug 12 '22 11:08 MRicoIE2CS

@richiprosima please test this again

MRicoIE2CS avatar Aug 23 '22 06:08 MRicoIE2CS

@richiprosima Please test this

richiware avatar Aug 30 '22 06:08 richiware

Failed tests not related

richiware avatar Aug 30 '22 09:08 richiware