May I know if we have callback or the metrics when the BEST_EFFORT DataReader drops out-of-order samples?
It would be the best if we have callback. Because we want to capture the history but don't want the overhead of reliable channel.
May I know if we have callback or the metrics when the BEST_EFFORT DataReader drops out-of-order samples?
It would be the best if we have callback. Because we want to capture the history but don't want the overhead of reliable channel.
No, there are no metrics or callbacks triggered when a data sample is received and must be dropped becuase it has an older sequence number than the sequence number of the last data sample received (for the DataWriter), aka "out-of-order" samples.
Thanks Howard, can we obtain writer sequence number of the sample (which I can see in the Wireshark)? So my idea is to measure the differences between the writer sequence number so as to monitor if there are any sample loss due to out-of-order samples. Do you think if this works?
Yes, you can certainly do that...however, the publication sequence number is unique to each DataWriter. So if there are multiple DataWriters of a topic, you will need to keep track of the last sequence number received per DataWriter.
All of the information that you need, publication sequence number, writer handle, can be found in the SampleInfo object that is provided for each data sample.