Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buffers exhaution when compiled with statistics [12629] #2243

Merged
merged 7 commits into from
Oct 8, 2021

Conversation

juanlofer-eprosima
Copy link
Contributor

Commit 14d3323 broke init_monitor_tests from Fast-DDS-statistics-backend.
The reason is that, when compiled with statistics, a new async flow controller is created but the same number of buffers are preallocated, leading to a resource exhaution and falling into a hangup state.

Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
MiguelCompany
MiguelCompany previously approved these changes Oct 1, 2021
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with greenish CI!

Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
MiguelCompany
MiguelCompany previously approved these changes Oct 4, 2021
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Much nicer solution!

Copy link
Contributor

@jparisu jparisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in file src/fastdds/test/mock/rtps/RTPSMessageGroup/fastdds/rtps/messages/RTPSMessageGroup.h update the constructors so they allow the arguments with default values. It fails the compilation with certain CMake args otherwise:

"-DCMAKE_BUILD_TYPE=Debug",
"-DEPROSIMA_BUILD=OFF",
"-DCOMPILE_EXAMPLES=ON",
"-DFASTDDS_STATISTICS=OFF",
"-DSHM_TRANSPORT_DEFAULT=OFF",
"-DEPROSIMA_BUILD_TESTS=ON",
"-DGTEST_INDIVIDUAL=OFF",

Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jparisu jparisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MiguelCompany
Copy link
Member

Unrelated failures. Going in.

@MiguelCompany MiguelCompany merged commit 7e61757 into master Oct 8, 2021
@MiguelCompany MiguelCompany deleted the testing/init-monitor-tests branch October 8, 2021 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants