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 deadlock with LivelinessManager [11925] #2037

Merged
merged 2 commits into from
Jul 5, 2021

Conversation

richiware
Copy link
Member

Fixes a deadlock when asserting liveliness of a writer (due to a sample was received from it).

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
@richiware richiware changed the title Refs #11848. Fix deadlock with LivelinessManager Fix deadlock with LivelinessManager Jul 2, 2021
@richiware richiware changed the title Fix deadlock with LivelinessManager Fix deadlock with LivelinessManager [11925] Jul 2, 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.

Maybe unrelated to this PR, but should we add liveliness assertion on StatelessReader::processHeartbeatMsg ?

src/cpp/rtps/reader/StatefulReader.cpp Outdated Show resolved Hide resolved
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
@richiware
Copy link
Member Author

Reliable Datawriters will never send a heartbeat to Besteffort Datareaders. Only in case of using multicast but I think a Besteffort Datareader will never expect a heartbeat, then it will never do something if received one.

@MiguelCompany
Copy link
Member

Reliable Datawriters will never send a heartbeat to Besteffort Datareaders

I am thinking of the case when the liveliness is set to MANUAL_BY_TOPIC, where an explicit liveliness heartbeat may be sent.

@MiguelCompany
Copy link
Member

Reliable Datawriters will never send a heartbeat to Besteffort Datareaders

I am thinking of the case when the liveliness is set to MANUAL_BY_TOPIC, where an explicit liveliness heartbeat may be sent.

After discussing this offline, we will do this in a separate PR.

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

MiguelCompany added a commit that referenced this pull request Jul 2, 2021
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@richiware richiware merged commit b8436f3 into master Jul 5, 2021
@richiware richiware deleted the bugfix/deadlock-liveliness-manager branch July 5, 2021 05:39
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.

2 participants