Skip to content

Add in a warning for a KeepLast depth of 0.#2048

Merged
clalancette merged 2 commits intorollingfrom
clalancette/add-keeplast-warning
Nov 30, 2022
Merged

Add in a warning for a KeepLast depth of 0.#2048
clalancette merged 2 commits intorollingfrom
clalancette/add-keeplast-warning

Conversation

@clalancette
Copy link
Copy Markdown
Contributor

It really doesn't make much sense to have a KeepLast depth of 0; no data could possibly be stored. Indeed, the underlying DDS implementations don't actually support this. It currently "works" because a KeepLast depth of 0 is assumed to be system default, so the RMW layer typically chooses "1" instead. But this isn't something we should be encouraging users to do, so add a warning.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

I'll note that I could easily be convinced to make this throw an exception instead. That would be a much stronger warning to users not to do this, but it does break existing practice so has some risk of downstream breakage. Happy to discuss it.

Loading
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.

4 participants