Skip to content

[18257] Version compatibility issue for participant discovery when upgrading to version 2.10.1 #3460

Closed
@vfrcode

Description

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

An application that has implemented the on_participant_discovery callback (having 2 parameters) and was compiled against the fastrtps library v2.10.0 was expected to still be able to discover new participants after upgrading the installed runtime library to v2.10.1.

Current behavior

The on_participant_discovery callback is never called when the runtime library is of version v2.10.1.

This is because the empty implementation of the on_participant_discovery callback function of DomainParticipantListener is inside the header file and is virtual, and therefore the compiled application has the empty implementation compiled into it. Version v2.10.1, however, relies on the new default implementation of the on_participant_discovery callback function with 3 parameters to relay the call to the on_participant_discovery with 2 parameters, but this new default implementation is not used by the application.

Hence, no application that uses this callback and was compiled with versions prior to v2.10.1 will be able to work properly when the runtime library is upgraded to v2.10.1.

Steps to reproduce

  1. Implement an application that implements the on_participant_discovery callback function that has 2 parameters.
  2. Build with v2.10.0
  3. Run the application with runtime library libfastrtps version v2.10.1
  4. Note that the callback is never called.

Fast DDS version/commit

The bug is introduced in commit 924593a (DomainParticipant::ignore_participant implementation (#3412).

Platform/Architecture

Ubuntu Focal 20.04 amd64

Transport layer

Default configuration, UDPv4 & SHM

Additional context

No response

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    doc-pendingIssue or PR which is pending to be documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions