eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.2k stars 774 forks source link

[RTPS_WRITER_HISTORY Error] Sequence number provided doesn't match any change in history #4338

Open fujitatomoya opened 9 months ago

fujitatomoya commented 9 months ago

Is there an already existing issue for this?

Expected behavior

If the many participants with security enabled, this is expected to print? with transient situation to security handshake with many participants at the same time, this error message can be seen easily. (as experimental, we have 150 participants with publishers, and single subscription can lead to print this error messages.)

this message should be tagged with Warning instead of Error if that is expected to happen?

Current behavior

it does print as error level message as below.

[RTPS_WRITER_HISTORY Error] Sequence number provided doesn't match any change in history

Steps to reproduce

  1. Build with cmake -DSECURITY=ON.
  2. Instantiate many SecureHelloWorldExample publishers and a subscriber. e.g test.sh 150 below.
#!/bin/bash

echo "---------- starting $1 publishers with security (each participant)"
for i in $(seq 1 $1);
do
  ./Fast-DDS/build/examples/cpp/dds/SecureHelloWorldExample/DDSSecureHelloWorldExample publisher &
done

echo "---------- starting a subscriber with participant security"
./Fast-DDS/build/examples/cpp/dds/SecureHelloWorldExample/DDSSecureHelloWorldExample subscriber &

exit 0
  1. The following error message come up.
[RTPS_WRITER_HISTORY Error] Sequence number provided doesn't match any change in history

Fast DDS version/commit

So far we confirmed, this can be observed with master, V2.10.1, and V2.11.2

Platform/Architecture

Ubuntu Focal 20.04 amd64, Ubuntu Focal 20.04 arm64

Transport layer

UDPv4

Additional context

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

jiachm commented 6 months ago

I tried initiating communication with 40 secure publishers and 40 secure subscribers but observed that the sync could not converge. I also encountered the same error as you reported.

fujitatomoya commented 6 months ago

@EduPonz @MiguelCompany do you guys have similar problem like this?