[18257] Version compatibility issue for participant discovery when upgrading to version 2.10.1 #3460
Closed
1 task done
Labels
doc-pending
Issue or PR which is pending to be documented
Is there an already existing issue for this?
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
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
The text was updated successfully, but these errors were encountered: