Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtpsUdpDataLink sends nacks when writer has clearly moved on #4548

Merged
merged 1 commit into from Mar 29, 2024

Conversation

jrw972
Copy link
Contributor

@jrw972 jrw972 commented Mar 28, 2024

Problem

When doing interoperability testing, OpenDDS was observed to send a nack for a sequence number that is no longer available. The offending sequence is

  1. Writer sends a HB for [X, X].
  2. OpenDDS Reader sends a NACK for X.
  3. Writer sends DATA with sequence number X + 1.
  4. Writer sends HB for [X+1, X+1].
  5. OpenDDS Reader sends a NACK for X.

OpenDDS should treat X as unavailable.

Solution

The RtpsUdpDataLink contains a code fragment that handles this case but it is limited to the first heartbeat that was received. Move this code out so that it is processed for each heartbeat.

@jrw972 jrw972 self-assigned this Mar 28, 2024
@jrw972 jrw972 linked an issue Mar 28, 2024 that may be closed by this pull request
Problem
-------

When doing interoperability testing, OpenDDS was observed to send a
nack for a sequence number that is no longer available.  The offending
sequence is

1. Writer sends a HB for [X, X].
2. OpenDDS Reader sends a NACK for X.
3. Writer sends DATA with sequence number X + 1.
4. Writer sends HB for [X+1, X+1].
5. OpenDDS Reader sends a NACK for X.

OpenDDS should treat X as unavailable.

Solution
--------

The RtpsUdpDataLink contains a code fragment that handles this case
but it is limited to the first heartbeat that was received.  Move this
code out so that it is processed for each heartbeat.
@jrw972 jrw972 force-pushed the rtps-udp-datalink-heartbeat-gap branch from 0bd70e7 to cc6d4b5 Compare March 29, 2024 17:14
@jrw972 jrw972 merged commit ca06163 into OpenDDS:master Mar 29, 2024
132 checks passed
@jrw972 jrw972 deleted the rtps-udp-datalink-heartbeat-gap branch March 29, 2024 21:37
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.

OpenDDS sends nacks when writer has clearly moved on
3 participants